-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow using on PHP 7.1 with Composer 2 #8184
Conversation
@nicolas-grekas any idea what the travis failure is? weid console undefined function thing. Otherwise +1 for going forward with this. |
Nope, I can't reproduce locally. The call to stream_isatty is guarded by a function_exists check. That's strange. |
The cron build fails with the same message, so it's not related to your changes. There was a release of phpbench 4 days ago. I think rebuilding the phar pulled in a new version of
There are 2 calls in the codebase, but that one is not guarded: The issue I think we should pin the version of phpbench to 0.17.0, or maybe use php 7.2 or higher in the benchmark build? Since the build uses a library (symfony/console) that requires 7.2?
The guard can probably be removed now BTW |
Fixed in #8186 |
Thanks @nicolas-grekas ! |
Hello there. Could you also create a new tag for this? |
Similar to doctrine/dbal#4084
In order to support Composer 2,
ocramius/package-versions
requires PHP 7.4.This effectively means that using it in "require" forces ppl on PHP 7.1 to use Composer 1.
@Seldaek created the
composer/package-versions-deprecated
to unlock this situation.