Skip to content
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

Fixed compatibility with composer 2.1 #38

Merged
merged 2 commits into from
Jun 24, 2021
Merged

Fixed compatibility with composer 2.1 #38

merged 2 commits into from
Jun 24, 2021

Conversation

SamMousa
Copy link
Contributor

Fixes #37

@dsturm
Copy link

dsturm commented Jun 14, 2021

Hej @SamMousa,

shouldn't we check, whether Composer::RUNTIME_API_VERSION is at least 2.0.0 and therefor use

version_compare(Composer::RUNTIME_API_VERSION, '2.0.0', '>=')

Or is there a reason to explicitly check for 2.0.0 and 2.1.0?

dsturm added a commit to zirkeldesign/foxy that referenced this pull request Jun 14, 2021
Use php native `version_compare()` to fix bug in current composer `2.1.3`
@francoispluchino
Copy link
Member

@SamMousa It is preferable to use version_compare function.

@SamMousa
Copy link
Contributor Author

I used strict comparison because that's what was done in original code. I'm fine updating it to use version compare

@francoispluchino
Copy link
Member

Yes, please, you might as well improve the code immediately :-)

Use `version_compare` instead of string comparison
@SamMousa
Copy link
Contributor Author

@francoispluchino, the PR is done but CI is broken.

@SamMousa
Copy link
Contributor Author

Bump

@francoispluchino francoispluchino merged commit c455b0c into fxpio:master Jun 24, 2021
@francoispluchino
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Issues with composer 2.1
3 participants