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

merge-requests/3988/head
catch 2023-05-11 14:04:15 +01:00
parent dd5a5b712e
commit 4ab1f4b027
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -830,6 +830,10 @@ DOCBLOCK;
})',
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
)