some time ago I updated my local project from version 5 to 9, and everything works correctly. Now it's time to update the production version and I didn't want to reload the whole project, but to update as I did locally. A couple of months ago I upgraded from version 5 to 7.3. Today I updated to version 8.83, and I wanted to get to the latest version. The error it returns to me is the following:
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /home/mywebsite/mywebsite.com/vendor/laravel/framework/src/Illuminate/Collections/Collection.php on line 488
How can I solve this problem? Thanks in advance to all those who will help me.
Apokryfos was right. The general version was 7.4, and not being able to change it because it is the responsibility of the hosting, I contacted the support, who advised me to use a special command so that Composer could use the appropriate version of PHP. Thanks all for the help.