Issue #3359065 by Spokje: Fix PHPStan L1 errors "Fix PHPStan L1 errors "Array has 2 duplicate keys with value 'Foo.SOME_KEY'..."
parent
dd5a5b712e
commit
4ab1f4b027
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue