Skip to content

Commit 385c8ee

Browse files
authored
Add note comment about unescacped \ on SimplifyRegexPatternRector (#7393)
1 parent 2926a24 commit 385c8ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
final class SimplifyRegexPatternRector extends AbstractRector
1919
{
2020
/**
21+
* Using double quote "\d", "\w", "\s" to avoid unescaped issue on scoped build
22+
* Reproduced with php-scoper 0.18.17, @see https://github.com/rectorphp/rector/issues/9395
23+
*
2124
* @var array<string, string>
2225
*/
2326
private const COMPLEX_PATTERN_TO_SIMPLE = [

0 commit comments

Comments
 (0)