when do you get this error? In the web page or on the command line?
What are the first lines of the stack trace?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string
I upgrade my project laravel 5.8 to laravel 8. it works in my local machine with php version 8.1.6. but when updating in server bluehost. They have php version 8.1 and it gives me error mentioned above.
Please or to participate in this conversation.