Skip to content

Commit abb4f89

Browse files
committed
Add note comment about unescacped \ on SimplifyRegexPatternRector
1 parent 2926a24 commit abb4f89

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)