服务器上的Symfony\Component\Debug\Exception\FatalErrorException laravel错误
部署项目时出现以下错误: Symfony\Component\Translation\TranslatorInterface::setLocale($locale)的声明必须与Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(字符串$locale)兼容服务器上的Symfony\Component\Debug\Exception\FatalErrorException laravel错误,laravel,deployment,server,host,Laravel,Deployment,Server,Host,部署项目时出现以下错误: Symfony\Component\Translation\TranslatorInterface::setLocale($locale)的声明必须与Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(字符串$locale)兼容 有没有一种方法可以在服务器上解决此问题而无需重新上传?服务器默认运行PHP7.1,这就是问题的原因。切换到7.2并解决了问题。删除缓存和日志,检查是否再次发生错误
有没有一种方法可以在服务器上解决此问题而无需重新上传?服务器默认运行PHP7.1,这就是问题的原因。切换到7.2并解决了问题。删除缓存和日志,检查是否再次发生错误