-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support for nikic/php-parser:^5 and (hopefully) doctrine/dbal:^4 #1502
Conversation
- `createForHostVersion` has been added to php-parse 4.18 so code can run with both versions [1] - therefore also bumped the minimum required version to it Note: The dev dependency vimeo/psalm is **not** compatible with php-parser:^5 currently. This does not impact usages of this library, but sometimes cause friction when working on this library. For our CI this isn't a problem, because we already remove that dependency before running the test suite. [1] https://github.com/nikic/PHP-Parser/blob/master/UPGRADE-5.0.md#changes-to-the-parser-factory
@@ -17,6 +17,7 @@ jobs: | |||
env: | |||
COMPOSER_NO_INTERACTION: 1 | |||
strategy: | |||
fail-fast: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed this because we had multiple failed integration tests and I needed this to better understand the pattern which ones specifically failed. Eventually I decided to leave it in, in case of failures it's more useful to see all failed ones.
- php: 7.4 | ||
laravel: 10.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate entry 🤷🏼 => removed
- php: 8.3 | ||
laravel: 9.* | ||
- php: 7.4 | ||
laravel: 9.* | ||
- php: 7.3 | ||
laravel: 9.* | ||
- php: 8.3 | ||
laravel: 8.* | ||
- php: 8.2 | ||
laravel: 8.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are officially not supported
…arryvdh#1502) * Add support for nikic/php-parser:^5 - `createForHostVersion` has been added to php-parse 4.18 so code can run with both versions [1] - therefore also bumped the minimum required version to it Note: The dev dependency vimeo/psalm is **not** compatible with php-parser:^5 currently. This does not impact usages of this library, but sometimes cause friction when working on this library. For our CI this isn't a problem, because we already remove that dependency before running the test suite. [1] https://github.com/nikic/PHP-Parser/blob/master/UPGRADE-5.0.md#changes-to-the-parser-factory * gha: prevent cancelling of all jobs if one fails * Update CHANGELOG.md * gha: remove unsupported Laravel / PHP combinations According to https://laravel.com/docs/10.x/releases * Add dbal:^4 too
Summary
createForHostVersion
has been added to php-parser 4.18 so code can run with both versions [1]However, unrelated some tests in
master
were not working currently, which I also fixed to get the ✅ :This solved some combination of the integration tests failing, though I'm not 100% sure if dbal truly works with it; it seems none of the feature tests install it and it has no stable release yet 🤔
Fixes #1498 and #1490
Notes
[1] https://github.com/nikic/PHP-Parser/blob/master/UPGRADE-5.0.md#changes-to-the-parser-factory
Type of change
Checklist
composer fix-style