Ocramius / PackageVersions

:package: Composer addon to efficiently get installed packages' version numbers
MIT License
3.22k stars 67 forks source link

syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) #131

Closed i-kitchen closed 4 years ago

i-kitchen commented 4 years ago

Hello!

Was running a pipeline and it keeps failing at the step where I run: composer install --no-interaction --no-dev --optimize-autoloader --no-progress --no-suggest --ignore-platform-reqs

The full error:

Installing ocramius/package-versions (1.7.0): Downloading (100%)
PHP Parse error:  syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /builds/enterprise-systems/web-phone/symfony/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 34
Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /builds/enterprise-systems/web-phone/symfony/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 34

Is this a bug that was pushed out with this release or am I using a flag that is incompatible with the current release?

Thanks for your time!

i-kitchen commented 4 years ago

Nevermind I see from previously closed issues what the problem is.

Ocramius commented 4 years ago

Duplicate of #105