Commit bd938d4b authored by catch's avatar catch
Browse files

Issue #3359065 by Spokje: Fix PHPStan L1 errors "Fix PHPStan L1 errors "Array...

Issue #3359065 by Spokje: Fix PHPStan L1 errors "Fix PHPStan L1 errors "Array has 2 duplicate keys with value 'Foo.SOME_KEY'..."

(cherry picked from commit 4ab1f4b0)
parent a51a50e0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -2865,11 +2865,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/BrowserTestBase.php

		-
			message: "#^Array has 2 duplicate keys with value 'ClassWithConstants\\.SOME_KEY' \\(\\\\Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Fixtures\\\\ClassWithConstants\\:\\:SOME_KEY, \\\\Drupal\\\\Tests\\\\Component\\\\Annotation\\\\Doctrine\\\\Fixtures\\\\ClassWithConstants\\:\\:SOME_KEY\\)\\.$#"
			count: 1
			path: tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php

		-
			message: "#^Constructor of class Symfony\\\\Component\\\\ExpressionLanguage\\\\Expression has an unused parameter \\$expression\\.$#"
			count: 1
+4 −0
Original line number Diff line number Diff line
@@ -830,6 +830,10 @@ public function getConstantsProvider()
             })',
            array(
                AnnotationWithConstants::STRING => AnnotationWithConstants::INTEGER,
                // Since this class is a near-copy of
                // Doctrine\Tests\Common\Annotations\DocParserTest, we don't fix
                // PHPStan errors here.
                // @phpstan-ignore-next-line
                ClassWithConstants::SOME_KEY    => ClassWithConstants::SOME_VALUE,
                ClassWithConstants::SOME_KEY    => IntefaceWithConstants::SOME_VALUE
            )