Fix discriminatorValue key 0 #1584
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
4 errors
Static Analysis with PHPStan (8.2):
tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GH2158Test.php#L25
Parameter #1 $value of attribute class Doctrine\ODM\MongoDB\Mapping\Annotations\DiscriminatorMap constructor expects array<string, class-string>, array<int, string> given.
|
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.
|
InvalidArgument:
tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GH2158Test.php#L25
tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GH2158Test.php:25:24: InvalidArgument: Argument 1 of Doctrine\ODM\MongoDB\Mapping\Annotations\DiscriminatorMap::__construct expects array<string, class-string>, but list{Doctrine\ODM\MongoDB\Tests\Functional\Ticket\GH2158FirstType::class, Doctrine\ODM\MongoDB\Tests\Functional\Ticket\GH2158SecondType::class} provided (see https://psalm.dev/004)
|
Static Analysis with Psalm (8.2)
Process completed with exit code 2.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer-lock-static-analysis-phpstan
|
23.7 KB |
|
composer-lock-static-analysis-psalm
|
23.7 KB |
|