运行php artisan缓存后获取错误:清除Symfony\Component\Translation\TranslatorInterface::setLocale($locale)的声明
运行运行php artisan缓存后获取错误:清除Symfony\Component\Translation\TranslatorInterface::setLocale($locale)的声明,php,laravel,laravel-5,Php,Laravel,Laravel 5,运行php artisan缓存后:清除 我得到一个错误: Symfony\Component\Translation\TranslatorInterface::setLocale($locale)的声明必须与Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(字符串$locale)兼容 PHP版本(7.1)在11天前(2019年12月1日)不受支持: 解决方案:使用最新版本更新您的PHP,PHP版本(7.1)在11天前(20
php artisan缓存后:清除
我得到一个错误:
Symfony\Component\Translation\TranslatorInterface::setLocale($locale)的声明必须与Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(字符串$locale)兼容
PHP版本(7.1)在11天前(2019年12月1日)不受支持:
解决方案:使用最新版本更新您的PHP,PHP版本(7.1)在11天前(2019年12月1日)不受支持:
解决方案:使用最新版本更新PHP,执行以下更改-
“symfony/translation”:“4.3.8”
在您的composer.json
中
运行composer更新
做以下更改-
“symfony/translation”:“4.3.8”
在您的composer.json
中
运行composer更新
我也犯了同样的错误
我用加法解决了它
"symfony/translation": "4.3.8"
到我的composer.json文件
然后跑
composer更新
从那以后,一切都很顺利我也犯了同样的错误
我用加法解决了它
"symfony/translation": "4.3.8"
到我的composer.json文件
然后跑
composer更新
在那之后一切都很好你的php版本和laravel框架版本是什么?PHP7.1和laravel 5.8请附上你的composer.json
问题文件你的php版本和laravel框架版本是什么?PHP7.1和laravel 5.8请附上你的composer.json
问题文件试一试@Ranjeetwhat@兰吉特?问题解决了还是仍然面临错误?尝试一下@Ranjeet发生了什么@Ranjeet?问题解决了还是仍然面临错误?仅当无法升级php版本时使用此选项仅当无法升级php版本时使用此选项