From 9935d84f11583c62c33f04dc8d4c418f4d44e3dd Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 1 Oct 2025 17:35:12 +0700 Subject: [PATCH] Try use double quote on SimplifyRegexPatternRector --- .../Rector/FuncCall/SimplifyRegexPatternRector.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php b/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php index 109bfe54b92..088f8d8a126 100644 --- a/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php +++ b/rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php @@ -21,12 +21,12 @@ final class SimplifyRegexPatternRector extends AbstractRector * @var array */ private const COMPLEX_PATTERN_TO_SIMPLE = [ - '[0-9]' => '\\\d', - '[a-zA-Z0-9_]' => '\\\w', - '[A-Za-z0-9_]' => '\\\w', - '[0-9a-zA-Z_]' => '\\\w', - '[0-9A-Za-z_]' => '\\\w', - '[\r\n\t\f\v ]' => '\\\s', + '[0-9]' => "\d", + '[a-zA-Z0-9_]' => "\w", + '[A-Za-z0-9_]' => "\w", + '[0-9a-zA-Z_]' => "\w", + '[0-9A-Za-z_]' => "\w", + '[\r\n\t\f\v ]' => "\s", ]; public function __construct(