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

[Chore] Composer 2 support #963

Merged
merged 2 commits into from
Jun 23, 2020
Merged

Conversation

mr-feek
Copy link
Contributor

@mr-feek mr-feek commented Jun 23, 2020

👋 I think this should allow usage with composer 2. There isn't an official tag yet, so ^2.0@dev should suffice to allow dev stability versions of the release. Naturally once the official composer 2 release is made, we should update the dependency to be "composer/composer": "^1.6 || ^2.0",


I have verified that our (ide-helper's) usage of composer is limited to ClassMapGenerator::createMap, whose signature doesn't seem to have changed in composer 2.


grumphp added support for composer 2 in 0.18.1, hence why I have updated it in this PR.

Related: psalm/psalm-plugin-laravel#89

@mr-feek
Copy link
Contributor Author

mr-feek commented Jun 23, 2020

This doesn't seem like it can be fully tested because of the --prefer-stable flags in the github workflow build matrix.

When I do a composer update without the --prefer-stable flag, composer/semver (3.0.0) is installed.
With the prefer stable flag, composer/semver (1.5.1) is installed

At the end of the day, I think this is fine. We don't really want to be testing out github workflows with dev releases (as we dont want false positive test failures)

@mr-feek mr-feek marked this pull request as ready for review June 23, 2020 01:49
@barryvdh barryvdh merged commit 4cd3362 into barryvdh:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants