Error in vendor/markbaker


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?

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

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

The vendor dependency markbaker/complex that throws this syntax error simply requires PHP 5.6