Skip to content

Commit 0ca6392

Browse files
committed
Revert single quote escape
1 parent c751b81 commit 0ca6392

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

lib/Config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ final class Config extends PhpCsFixerConfig
6868
'single_line_throw' => false,
6969
'space_after_semicolon' => true,
7070
'static_lambda' => false,
71-
'string_implicit_backslashes' => ['single_quoted' => 'escape'],
7271
'unary_operator_spaces' => false,
7372
'use_arrow_functions' => false,
7473
];

lib/FinalInternalClassFixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
final class FinalInternalClassFixer extends AbstractFixer
1616
{
17-
private const REGEX = '(?:final|\\\\Doctrine\\\\ORM\\\\Mapping\\\\Entity|ORM\\\\Mapping\\\\Entity|ORM\\\\Entity|Entity)';
17+
private const REGEX = '(?:final|\\\Doctrine\\\ORM\\\Mapping\\\Entity|ORM\\\Mapping\\\Entity|ORM\\\Entity|Entity)';
1818

1919
public function getDefinition(): FixerDefinitionInterface
2020
{
@@ -83,7 +83,7 @@ private static function isDoctrineEntity(Tokens $tokens, int $classIndex): bool
8383
for ($index = $attributeOpenIndex; $index < $classIndex; ++$index) {
8484
$content .= $tokens[$index]->getContent();
8585
}
86-
if (1 === \preg_match(\sprintf('/^#\\[%s/', self::REGEX), $content)) {
86+
if (1 === \preg_match(\sprintf('/^#\[%s/', self::REGEX), $content)) {
8787
return true;
8888
}
8989

tests/AbstractFixerTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function setUp(): void
2727
final protected function createFixer()
2828
{
2929
$fixerClass = static::class;
30-
$fixerClass = \str_replace('\\Tests\\', '\\', $fixerClass);
30+
$fixerClass = \str_replace('\Tests\\', '\\', $fixerClass);
3131
$fixerClass = \preg_replace('/Test$/', '', $fixerClass);
3232

3333
return new $fixerClass();

tests/FunctionReferenceSpaceFixerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function provideCases(): array
2626
$use = \str_replace(' = array()', '', $use);
2727
$use = \str_replace('$array', '$secondArray', $use);
2828

29-
$invariant = \PHP_EOL . \preg_replace('/\\s+/', ' ', '
29+
$invariant = \PHP_EOL . \preg_replace('/\s+/', ' ', '
3030
$var =& $var;
3131
$var =& $var;
3232
$var =&$var;

0 commit comments

Comments
 (0)