Ocramius / PackageVersions

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

#148 retrieve root package version also when package is installed with `--no-scripts` #150

Closed Ocramius closed 4 years ago

Ocramius commented 4 years ago

Fixes #148

The root package version, when running with a stub version of PackageVersions\Versions (which happens when installation was run with --no-scripts or equivalent), uses a string that is not recognized by Composer's composer-runtime-api tooling: for that special case, we compare it to the default version that is stored in the constant, and use composer's tooling to figure out the actual root package version