Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Randy_Johnson's avatar

HELP! PHP local 7.3.10 - production 7.1

Help I am getting this error

Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)

I checked online and it is saying it may be something to do with the php versions.

I checked my local host and the php is:

7.3.10

and the server php is

7.1

I am completely burnt out and cannot think. I am new to this.

0 likes
3 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

You did not say what laravel version. So I guess 7.*.

The requirement is PHP >= 7.2.5

Your cpanel should have an option to change php version. If it doesn't have PHP >= 7.2.5, ask the tech team to place a newer version on there.

1 like
latz's avatar

Have you shell access on the production server? Perhaps composer can help you.

1 like

Please or to participate in this conversation.