Ocramius / PackageVersions

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

Issue with installer.php #125

Closed JoshuaCHolden closed 4 years ago

JoshuaCHolden commented 4 years ago

Hello, My apologies if the naming is incorrect this is the first issue I have raised on git hub, I am encountering the following error in my project when I try to composer install

Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 34 ERROR: Service 'web' failed to build: The command '/bin/sh -c composer install -n --ansi --no-progress --no-suggest --ignore-platform-reqs --no-scripts --prefer-dist' returned a non-zero code: 255

I have tried with php versions 7.1, 7.2 and 7.3 with no luck, is this a known issue? it has only started happening recently

Ocramius commented 4 years ago

Duplicate of #105 - please read end of thread.

Ocramius commented 4 years ago

BTW, your problem is --ignore-platform-reqs - don't ignore those ;-)

JoshuaCHolden commented 4 years ago

Thank you so much for this! Much appreciated this fixed my issue