I am getting this error on my new Laravel project. I am trying to run after a fresh installation.
Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)
On my server following were configurations:
PHP 7.1.26-1+ubuntu14.04.1+deb.sury.org+1 Laravel Framework 5.7.28
Solution: Added "symfony/translation": "4.3.8"
in composer.json as follows
"require": { ... "symfony/translation": "4.3.8", }
and then
composer update
composer update --ignore-platform-reqs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With