PHP Parse error: syntax error, unexpected '$value' (T_VARIABLE) in /vendor/aws/aws-sdk-php/src/functions.php on line 36

Hi,
I see there are other similar support questions unsolved, however I’m posting it anyway, to see if I get luck.

Dynamic Segments does not update, so I set up a cron job in my hosting (I use plesk panel).

But I get this error:

PHP Parse error: syntax error, unexpected ‘$value’ (T_VARIABLE) in /vendor/aws/aws-sdk-php/src/functions.php on line 36

Anyone knows something about it?

Solved. I forced php version in this way
xxxxxxx/xxxxxx/opt/plesk/php/7.3/bin/php /app/console mautic:segments:update

This worked for me. Thank you!