讨论数量:
这个报错的意思是Symfony\Component\Translation\TranslatorInterface::setLocale($locale)这个方法声明与Symfony\Contracts\Translation|localeAwareInterface::setLocale(string $locale)方法声明不匹配,这两货都是接口,TranslatorInterface继承自localeAwareInterface,而子类接口与父类接口的同名方法声明必须完全一致,而TranslatorInterface的setLocale方法很明显少了string的类型声明。解决方案:
github.com/symfony/symfony/issues/...
github.com/laravel/framework/issue...
推荐文章: