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 PHP-Parser 5 support #1909
Add PHP-Parser 5 support #1909
Conversation
…t\TryCatch constructor
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.
👍 for the PR. I think however there is a few unrelated changes that could be extracted for clarity.
I am also a bit confused, is the PHP-Parser API changes working on 4.x? In which case we could migrate to it before allowing PHP-Parser 5.x
The main issue in tests: we will have to support 2 sets of tests in some cases. Also it looks like we will have to override Pretty Printer |
db3e7ef
to
d8843ed
Compare
d8843ed
to
4cc1b2f
Compare
When I try to install with this branch it also signals that it needs to update
|
also we have openned PR to add support for |
Sorry I completely missed that one! I was aiming to get PHPUnit 11 running in my project, hence me trying this branch. Best of luck wrapping up, looking forward to upgrading! |
Is this ready now that #1913 is merged? :) |
What about dropping support for PHP-Parser 4 in release 0.30? @infection/core |
I have to say that I'm not understanding the current issues with tests and pretty printer yet, but I'm completely ok with dropping support for php-parser v4. In the worst case if some project is stuck with php-parser v4 and want new Infection - infection.phar can be used. UPD: I think now I understand why we would need to support 2 versions in tests, because pretty printer output has changed. Yeah, let's not do it. |
# Conflicts: # composer.json # composer.lock # src/Mutator/IgnoreMutator.php # tests/phpunit/Mutant/MutantCodeFactoryTest.php # tests/phpunit/Mutator/Arithmetic/MultiplicationTest.php # tests/phpunit/Mutator/Boolean/Yield_Test.php # tests/phpunit/Mutator/FunctionSignature/ProtectedVisibilityTest.php # tests/phpunit/Mutator/FunctionSignature/PublicVisibilityTest.php # tests/phpunit/Mutator/Loop/Foreach_Test.php # tests/phpunit/Mutator/Regex/PregMatchMatchesTest.php # tests/phpunit/Mutator/ReturnValue/ArrayOneItemTest.php # tests/phpunit/Mutator/ReturnValue/FunctionCallTest.php # tests/phpunit/Mutator/ReturnValue/NewObjectTest.php # tests/phpunit/Mutator/ReturnValue/YieldValueTest.php # tests/phpunit/Mutator/Util/AbstractValueToNullReturnValueTest.php # tests/phpunit/PhpParser/FileParserTest.php # tests/phpunit/PhpParser/Visitor/MutatorVisitorTest.php # tests/phpunit/PhpParser/Visitor/ParentConnectorVisitorTest.php
cf098c4
to
ce51c6d
Compare
# Conflicts: # tests/phpunit/PhpParser/Visitor/MutatorVisitorTest.php
… merged" This reverts commit 873cd33.
@sidz please review 😃 |
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.
LGTM @maks-rafalko
Thanks for your hard work @sidz, let's merge and release |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [infection/infection](https://togithub.com/infection/infection) | `^0.27.11` -> `^0.28.0` | [![age](https://developer.mend.io/api/mc/badges/age/packagist/infection%2finfection/0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/infection%2finfection/0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/infection%2finfection/0.27.11/0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/infection%2finfection/0.27.11/0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>infection/infection (infection/infection)</summary> ### [`v0.28.0`](https://togithub.com/infection/infection/blob/HEAD/CHANGELOG.md#0280-2024-03-23) [Compare Source](https://togithub.com/infection/infection/compare/0.27.11...0.28.0) [Full Changelog](https://togithub.com/infection/infection/compare/0.27.11...0.28.0) **Added:** - Add PHP-Parser 5 support by [@​sidz](https://togithub.com/sidz) in [infection/infection#1909 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Lendable/json-serializer). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2MS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR: