diff --git a/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/Fixture/skip_double_escape_more_quantifiers.php.inc b/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/Fixture/skip_double_escape_more_quantifiers.php.inc new file mode 100644 index 00000000000..8274e9ad7f0 --- /dev/null +++ b/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/Fixture/skip_double_escape_more_quantifiers.php.inc @@ -0,0 +1,18 @@ + diff --git a/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/Fixture/skip_double_escape_next_non_quantifier.php.inc b/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/Fixture/skip_double_escape_next_non_quantifier.php.inc new file mode 100644 index 00000000000..c65297e43d8 --- /dev/null +++ b/rules-tests/Php73/Rector/FuncCall/RegexDashEscapeRector/Fixture/skip_double_escape_next_non_quantifier.php.inc @@ -0,0 +1,13 @@ + diff --git a/rules/Php73/Rector/FuncCall/RegexDashEscapeRector.php b/rules/Php73/Rector/FuncCall/RegexDashEscapeRector.php index b5949d4dcce..23c7436374d 100644 --- a/rules/Php73/Rector/FuncCall/RegexDashEscapeRector.php +++ b/rules/Php73/Rector/FuncCall/RegexDashEscapeRector.php @@ -39,9 +39,9 @@ final class RegexDashEscapeRector extends AbstractRector implements MinPhpVersio /** * @var string - * @see https://regex101.com/r/TBVme9/3 + * @see https://regex101.com/r/TBVme9/8 */ - private const RIGHT_HAND_UNESCAPED_DASH_REGEX = '#(?