gugoan
(Gugoan)
September 27, 2018, 1:33pm
1
Hi,
I am using Yii2 and after updating the framework (composer update), the following error appeared:
Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable in
vendor/markbaker\complex\classes\src\operations\add.php on line 18
Does anyone know what this is about?
samdark
(Alexander Makarov)
September 27, 2018, 3:30pm
2
Certainly not about Yii itself. Error points to markbaker/complex
composer package. It seems new version you’ve got isn’t compatible with PHP version you have. Try fixing version in your composer.json
.
1 Like
gugoan
(Gugoan)
September 27, 2018, 3:57pm
3
Yes, the problem is not with Yii2, but I thought someone had already experienced this problem.
I believe it really is the PHP version, in my workplace one of the servers is PHP 5.5.12. I’ll test on another.
Thank you @samdark
gugoan
(Gugoan)
September 30, 2018, 12:17pm
4
The vendor dependency markbaker/complex
that throws this syntax error simply requires PHP 5.6