Skip to content

[CodeQuality] Fix escape character on SimplifyRegexPatternRector part 2#7391

Merged
samsonasik merged 1 commit intomainfrom
fix-regex-2
Oct 1, 2025
Merged

[CodeQuality] Fix escape character on SimplifyRegexPatternRector part 2#7391
samsonasik merged 1 commit intomainfrom
fix-regex-2

Conversation

@samsonasik
Copy link
Member

@samsonasik
Copy link
Member Author

/cc @marcreichel let's another try

@samsonasik samsonasik enabled auto-merge (squash) October 1, 2025 10:21
@samsonasik samsonasik merged commit 1bec85f into main Oct 1, 2025
50 checks passed
@samsonasik samsonasik deleted the fix-regex-2 branch October 1, 2025 10:22
@@ -21,12 +21,12 @@ final class SimplifyRegexPatternRector extends AbstractRector
* @var array<string, string>
*/
private const COMPLEX_PATTERN_TO_SIMPLE = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add note about the scoper issue? So we at least know "why" , since there is no test fixture to verify

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fixture is exists, see https://github.com/rectorphp/rector-src/pull/7390/files#diff-50a42149759f087eb3dce4cbe895b8f759b6e1b26013eb262d8a088c39706e03

It just issue with php-scoper.

I will look if it can simply be handled by double quote.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properly resolved with double quoted:

on dev-main rectorphp/rector@d61e2b7

Tested locally, working ok.

I will add the note comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants