Fix IN
/NOT IN
expression handling and support enums when matching on to-many-collections
#8199
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Annotations
19 errors
Static Analysis with PHPStan (2.13, default)
Process completed with exit code 1.
|
Static Analysis with PHPStan (2.13, default):
src/Utility/PersisterHelper.php#L231
Method Doctrine\ORM\Utility\PersisterHelper::convertIndividualValue() should return list<mixed> but returns array<mixed>.
|
Static Analysis with PHPStan (2.13, default):
src/Utility/PersisterHelper.php#L155
Offset 'sourceToTargetKeyColumns' might not exist on array{cache?: array, cascade: array<string>, declared?: class-string, fetch: mixed, fieldName: string, id?: bool, inherited?: class-string, indexBy?: string, ...}.
|
Static Analysis with PHPStan (2.13, default):
src/Utility/PersisterHelper.php#L154
Offset 'relationToTargetKeyColumns' might not exist on array{cache?: array, cascade: array<string>, declared?: class-string, fetch: mixed, fieldName: string, id?: bool, inherited?: class-string, indexBy?: string, ...}.
|
Static Analysis with PHPStan (2.13, default):
src/Utility/PersisterHelper.php#L135
Method Doctrine\ORM\Utility\PersisterHelper::inferParameterTypes() has parameter $class with generic class Doctrine\ORM\Mapping\ClassMetadata but does not specify its types: T
|
Static Analysis with PHPStan (default, 2.5)
Process completed with exit code 1.
|
Static Analysis with PHPStan (default, 2.5):
src/Utility/PersisterHelper.php#L231
Method Doctrine\ORM\Utility\PersisterHelper::convertIndividualValue() should return list<mixed> but returns array<mixed>.
|
Static Analysis with PHPStan (default, 2.5):
src/Utility/PersisterHelper.php#L155
Offset 'sourceToTargetKeyColumns' might not exist on array{cache?: array, cascade: array<string>, declared?: class-string, fetch: mixed, fieldName: string, id?: bool, inherited?: class-string, indexBy?: string, ...}.
|
Static Analysis with PHPStan (default, 2.5):
src/Utility/PersisterHelper.php#L154
Offset 'relationToTargetKeyColumns' might not exist on array{cache?: array, cascade: array<string>, declared?: class-string, fetch: mixed, fieldName: string, id?: bool, inherited?: class-string, indexBy?: string, ...}.
|
Static Analysis with PHPStan (default, 2.5):
src/Utility/PersisterHelper.php#L135
Method Doctrine\ORM\Utility\PersisterHelper::inferParameterTypes() has parameter $class with generic class Doctrine\ORM\Mapping\ClassMetadata but does not specify its types: T
|
Static Analysis with PHPStan (default, default)
Process completed with exit code 1.
|
Static Analysis with PHPStan (default, default):
src/Utility/PersisterHelper.php#L231
Method Doctrine\ORM\Utility\PersisterHelper::convertIndividualValue() should return list<mixed> but returns array<mixed>.
|
Static Analysis with PHPStan (default, default):
src/Utility/PersisterHelper.php#L155
Offset 'sourceToTargetKeyColumns' might not exist on array{cache?: array, cascade: array<string>, declared?: class-string, fetch: mixed, fieldName: string, id?: bool, inherited?: class-string, indexBy?: string, ...}.
|
Static Analysis with PHPStan (default, default):
src/Utility/PersisterHelper.php#L154
Offset 'relationToTargetKeyColumns' might not exist on array{cache?: array, cascade: array<string>, declared?: class-string, fetch: mixed, fieldName: string, id?: bool, inherited?: class-string, indexBy?: string, ...}.
|
Static Analysis with PHPStan (default, default):
src/Utility/PersisterHelper.php#L135
Method Doctrine\ORM\Utility\PersisterHelper::inferParameterTypes() has parameter $class with generic class Doctrine\ORM\Mapping\ClassMetadata but does not specify its types: T
|
Static Analysis with PHPStan (default, default):
src/Persisters/Entity/BasicEntityPersister.php#L0
Ignored error pattern #^Offset 'sourceToTargetKeyColumns' might not exist on array\{cache\?\: array, cascade\: array\<string\>, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$# (offsetAccess.notFound) in path /home/runner/work/orm/orm/src/Persisters/Entity/BasicEntityPersister.php was not matched in reported errors.
|
Static Analysis with PHPStan (default, default):
src/Persisters/Entity/BasicEntityPersister.php#L0
Ignored error pattern #^Offset 'relationToTargetKeyColumns' might not exist on array\{cache\?\: array, cascade\: array\<string\>, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$# (offsetAccess.notFound) in path /home/runner/work/orm/orm/src/Persisters/Entity/BasicEntityPersister.php was not matched in reported errors.
|
Static Analysis with PHPStan (default, default):
src/Persisters/Entity/BasicEntityPersister.php#L0
Ignored error pattern #^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getTypes\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$# (missingType.generics) in path /home/runner/work/orm/orm/src/Persisters/Entity/BasicEntityPersister.php was not matched in reported errors.
|
Static Analysis with PHPStan (default, default):
src/Persisters/Entity/BasicEntityPersister.php#L0
Ignored error pattern #^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getIndividualValue\(\) should return list\<mixed\> but returns array\<mixed\>\.$# (return.type) in path /home/runner/work/orm/orm/src/Persisters/Entity/BasicEntityPersister.php was not matched in reported errors.
|