-
Notifications
You must be signed in to change notification settings - Fork 86
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
PHP 8.0 compability. #215
PHP 8.0 compability. #215
Conversation
Hey @dotdevru So I can create a new branch 6.x and merge this PR into it reducing supported PHP version to 7.4 and 8.0. Sounds good? |
Yes should be fine if its gonna be merged in 6.x and released as new major version because of php version BC. |
I created branch 6.x, feel free to remove support for PHP 7.2 & 7.3 which should make all tests green again ✅ |
Also bumbp phpunit/phpunit:^9.4 to support php8.
I updated composer.json to php >= 7.4 & phpunit only ^9.4 |
ok, so now mutation tests are failing, I think you must also update phpunit.xml to the latest schema? |
could you also execute |
Yeah u are right in phpunit 9.x there config format changed i updated config.
U mean in github action? Add to the end of static-analyze.yml?
|
oh no sorry, execute it locally, in the command line, this will automatically fix all issues with coding standards (empty lines, indention, useless spaces etc). |
Should be fine now. |
It's fine! Thanks @dotdevru fixing mutation tests can be handled later |
As php 8.0 introduces new "match" keyword, library fails to run because of one class:
Coduo\PHPMatcher\Matcher\Pattern\Expander\Match
I renamed class to:
Coduo\PHPMatcher\Matcher\Pattern\Expander\ExpanderMatch
And all errors is gone. tests pass on php8.0 + phpunit 9.4 (phpunit 8.x does not support php 8.x)