Ocramius / PackageVersions

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

Add replacement method to get rid of the `PackageVersions\Versions::ROOT_PACKAGE_NAME` constant #153

Closed Ocramius closed 4 years ago

Ocramius commented 4 years ago

Addresses https://github.com/Ocramius/PackageVersions/issues/139#issuecomment-657118021

By having a smooth migration from PackageVersions\Versions::ROOT_PACKAGE_NAME to, for example, PackageVersions\Versions::rootPackageName(), we can get rid of the last bit of generated code in this library once moving to 2.0.0, by just dropping the PackageVersions\Versions::ROOT_PACKAGE_NAME constant.