Ocramius / PackageVersions

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

[ Fix ] Parser error for unexpected string #128

Closed mohsenmottaghi closed 4 years ago

mohsenmottaghi commented 4 years ago

Hello, this PR is for fixing parser error

Error message

Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /app/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 34
 The command '/bin/sh -c composer test' returned a non-zero code: 255
mohsenmottaghi commented 4 years ago

I tested it on PHP 7.3

Ocramius commented 4 years ago

Duplicate of #105