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

Giorgi's avatar

splat operator - php 7 and laravel 5.3

I have updated laravel to 5.3 and I have error:

Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in my_project_path/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 475

I have php 7. Can anyone give me some advice?

0 likes
6 replies
tykus's avatar

You most likely have an incorrect version of PHP - on CLI, check with php -v and on your development/production server check using phpinfo().

Remedial action will vary depending on your OS.

Giorgi's avatar

I checked with php -v and php version is 7.0.11. My OS is Ubuntu 14.04.5 LTS.

Giorgi's avatar

I found mistake and corrected it. It was due to Apache.

dont_panic's avatar

@giorgi I know this is old, but Google doesn't forget and this seems to match a problem I am investigating. What was the problem/fix?

Please or to participate in this conversation.