diff --git a/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php b/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php index 088f8d8a126..e245aefc7d7 100644 --- a/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php +++ b/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php @@ -18,6 +18,9 @@ final class SimplifyRegexPatternRector extends AbstractRector { /** + * Using double quote "\d", "\w", "\s" to avoid unescaped issue on scoped build + * Reproduced with php-scoper 0.18.17, @see https://github.com/rectorphp/rector/issues/9395 + * * @var array */ private const COMPLEX_PATTERN_TO_SIMPLE = [