-
Notifications
You must be signed in to change notification settings - Fork 823
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
FEAT support variables as second and third argument #11521
Conversation
Please fill in the PR checklist. That checklist is there to help you as the contributor double check you've done everything you need to do. That means that I as the reviewer will then know whether you have done those things which speeds things up a little. |
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.
Most of this review is just me asking for clarification, since I haven't worked in this part of the code much before so I need a bit of help understanding what's going on.
Please retarget this to the |
Co-authored-by: Guy Sartorelli <[email protected]>
@GuySartorelli ideally i'd like to make sure there is no regression |
Any change has some chance of regression. There's no known regressions this causes, but because it's code I'm unfamiliar with, there is a chance of regressions that I won't be able to identify. Regardless, as this is adding new functionality, it is better included in a minor release rather than a patch release. |
ok rebased! i don't know if any test or update is needed a unit test would be nice but i didn't go as far as that. i've just tried locally on my project and it seemed to work fine |
I won't have time to test this out myself until at least halfway through next week. |
@GuySartorelli i added the tests and improved how i track strings. i added some comments to make it more clear how it works. the whole test suite is running fine locally |
@GuySartorelli updated the code and added test cases for falsy values and $x = 'test' ; $x .= 'more'; |
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.
Looks good, great unit test. Thank you!
Description
This PR upgrades the text collector to support collecting arguments as variables for second and third argument (see examples below).
Manual testing steps
Issues
Pull request checklist