I ran the same command and it works fine for me. What did you do to configure?
Try this:
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hey guys I did a new installation for the laravel project with version 5.7.
composer create-project --prefer-dist laravel/laravel newprojek "5.7.*"
after I finished configuring I tried to access the project and get a message like this
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)
this is my first time getting this error message thanks
thx all i fix this with
check composer.json on Symfony/translation-contracts/
and i change
"require": {
"php": "^7.2.9"
},
to
"require": {
"php": "^7.1.3"
},
and i add
"symfony/translation-contracts": "^1.1.6"
to composer.json
and i run command composer update refresh projek and done
Please or to participate in this conversation.