Reputation: 579
After running php artisan cache:clear
I am getting error:
Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)
Upvotes: 1
Views: 3810
Reputation: 185
i got the same error
i solved it by add
"symfony/translation": "4.3.8"
to my composer.json file
and then run
composer update
every thing work good after that
Upvotes: 3
Reputation: 123
Do below changes-
"symfony/translation": "4.3.8"
in your composer.json
,composer update
Upvotes: 1
Reputation: 10091
PHP version (7.1) has been unsupported for 11 days ago(1 Dec 2019) : LINK
Solution: Update your PHP with the latest version
Upvotes: 1