Browse Source

DX: do not exclude duplicates that are clearly mistakes (#8135)

Kuba Werłos 7 months ago
parent
commit
6c93de86f9

+ 0 - 2
tests/AutoReview/ProjectCodeTest.php

@@ -778,7 +778,6 @@ final class ProjectCodeTest extends TestCase
                 'PhpCsFixer\Tests\DocBlock\TypeExpressionTest::provideGetConstTypesCases',
                 'PhpCsFixer\Tests\DocBlock\TypeExpressionTest::provideParseInvalidExceptionCases',
                 'PhpCsFixer\Tests\FixerNameValidatorTest::provideIsValidCases',
-                'PhpCsFixer\Tests\Fixer\Alias\EregToPregFixerTest::provideFixCases',
                 'PhpCsFixer\Tests\Fixer\ArrayNotation\ArraySyntaxFixerTest::provideFixCases',
                 'PhpCsFixer\Tests\Fixer\Basic\BracesFixerTest::provideFixMultiLineStructuresCases',
                 'PhpCsFixer\Tests\Fixer\Basic\BracesFixerTest::provideFunctionImportCases',
@@ -793,7 +792,6 @@ final class ProjectCodeTest extends TestCase
                 'PhpCsFixer\Tests\Fixer\Import\OrderedImportsFixerTest::provideFixCases',
                 'PhpCsFixer\Tests\Fixer\Operator\StandardizeIncrementFixerTest::provideFixCases',
                 'PhpCsFixer\Tests\Fixer\PhpUnit\PhpUnitTargetVersionTest::provideFulfillsCases',
-                'PhpCsFixer\Tests\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixerTest::provideFixCases',
                 'PhpCsFixer\Tests\Fixer\Phpdoc\PhpdocTypesOrderFixerTest::provideFixWithNullFirstCases',
                 'PhpCsFixer\Tests\Fixer\StringNotation\SingleQuoteFixerTest::provideFixCases',
                 'PhpCsFixer\Tests\Fixer\Whitespace\MethodChainingIndentationFixerTest::provideFixCases',

+ 2 - 2
tests/Fixer/Alias/EregToPregFixerTest.php

@@ -127,8 +127,8 @@ final class EregToPregFixerTest extends AbstractFixerTestCase
         ];
 
         yield 'binary uppercase' => [
-            '<?php $x = preg_split(b"/[A-Z]/Di", $m);',
-            '<?php $x = spliti(b"[A-Z]", $m);',
+            '<?php $x = preg_split(B"/[A-Z]/Di", $m);',
+            '<?php $x = spliti(B"[A-Z]", $m);',
         ];
     }
 

+ 2 - 2
tests/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixerTest.php

@@ -1775,9 +1775,9 @@ class Foo {
         yield 'dont remove when used with reference' => [
             '<?php class Foo {
                     /**
-                     * @param string ...$x Description
+                     * @param string &$x Description
                      */
-                     function f(string ...$x) {}
+                     function f(string &$x) {}
                 }',
         ];