Require at least one <search-index> within <search-indexes> #22
static-analysis.yml
on: push
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
14 errors
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/Annotations/SearchIndex.php#L25
Method Doctrine\ODM\MongoDB\Mapping\Annotations\SearchIndex::__construct() has parameter $analyzers with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/Annotations/SearchIndex.php#L25
Method Doctrine\ODM\MongoDB\Mapping\Annotations\SearchIndex::__construct() has parameter $fields with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/Annotations/SearchIndex.php#L25
Method Doctrine\ODM\MongoDB\Mapping\Annotations\SearchIndex::__construct() has parameter $storedSource with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/Annotations/SearchIndex.php#L25
Method Doctrine\ODM\MongoDB\Mapping\Annotations\SearchIndex::__construct() has parameter $synonyms with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L488
Property Doctrine\ODM\MongoDB\Mapping\ClassMetadata::$searchIndexes type has no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L488
Property Doctrine\ODM\MongoDB\Mapping\ClassMetadata::$searchIndexes type has no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L488
Property Doctrine\ODM\MongoDB\Mapping\ClassMetadata::$searchIndexes type has no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L488
Property Doctrine\ODM\MongoDB\Mapping\ClassMetadata::$searchIndexes type has no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L1194
Method Doctrine\ODM\MongoDB\Mapping\ClassMetadata::addSearchIndex() has parameter $definition with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2):
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L1194
Method Doctrine\ODM\MongoDB\Mapping\ClassMetadata::addSearchIndex() has parameter $definition with no value type specified in iterable type array.
|
RedundantCondition:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L193
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:193:13: RedundantCondition: Type SimpleXMLElement for $xmlRoot->search-indexes is always isset (see https://psalm.dev/122)
|
NoInterfaceProperties:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L193
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:193:19: NoInterfaceProperties: Interfaces cannot have properties (see https://psalm.dev/028)
|
InvalidPropertyFetch:
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L193
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:193:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
|
Static Analysis with Psalm (8.2)
Process completed with exit code 2.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer-lock-static-analysis-phpstan
Expired
|
22.4 KB |
|
composer-lock-static-analysis-psalm
Expired
|
22.4 KB |
|