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

Tokenizer/PHP: add tests for consistent tokenization heredocs with interpolated strings #3700

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Oct 26, 2022

Similar to previous PR #3604 which fixed the tokenization for complex double quoted strings with interpolated variables/expressions and added tests for it.

Context: I ran into a tokenizer issue with heredocs and interpolated variables elsewhere, so I wrote some tests for it. Turned out all was okay with the tokenizer, but the test elsewhere had a parse error in PHP < 7.3. Either way, I figured I may as well pull the tests to safeguard things stay okay ;-)

…terpolated strings

Similar to previous PR squizlabs#3604 which fixed the tokenization for complex double quoted strings with interpolated variables/expressions and added tests for it.
@gsherwood gsherwood added this to Idea Bank in PHPCS v3 Development via automation Dec 22, 2022
@gsherwood gsherwood added this to the 3.7.2 milestone Dec 22, 2022
@gsherwood gsherwood merged commit add95a7 into squizlabs:master Dec 22, 2022
PHPCS v3 Development automation moved this from Idea Bank to Ready for Release Dec 22, 2022
@gsherwood
Copy link
Member

Thanks

@jrfnl jrfnl deleted the feature/tokenizer-php-test-heredoc-tokenization branch December 22, 2022 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PHPCS v3 Development
Ready for Release
Development

Successfully merging this pull request may close these issues.

None yet

2 participants