Closed DanielSiepmann closed 3 years ago
I guess the package just doesn't support older versions and requires at least composer 1.10.6, so not an actual bug here in the package, but one should update composer. Will close the issue.
@DanielSiepmann will check
Just for information, the commits introducing the constant: 2.x: https://github.com/composer/composer/commit/0ab48a1773e55ee1706d43e739fa5719811a87c8 1.x: https://github.com/composer/composer/commit/ff05150c4e1514c452be03b86974fbc891942156
did not notice that it was introduced lately - only checked if it´s available - I am sorry. but we could switch to PLUGIN_API_VERSION, that was introduced 5 years ago https://github.com/composer/composer/blob/1.10/src/Composer/Plugin/PluginInterface.php#L30
We just need a reliable check if were on v1 or v2 for the compact layers. Will provide patches.
I don't think that's necessary. I would expect everyone to run on latest 1.x or 2.x anyway. But nice to hear you wanna patch that. One could also just check for existence of the constant. If it is not available it is 1.x.
yeah maybe the better option here, will provide patches - I broke it.
@DanielSiepmann please check prs
Looks good to me, thanks for providing the patches.
With update from 1.5.6 to 1.5.7 we receive the following PHP Fatal error in our CIs. Those CIs still run an older Composer 1.x version. In case you need the concrete version, I can look it up.