Necessary refactorings for Property hooks #7781
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
28 errors and 5 warnings
TooManyTemplateParams:
src/Mapping/ClassMetadata.php#L542
src/Mapping/ClassMetadata.php:542:5: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
|
TooManyTemplateParams:
src/Mapping/ClassMetadata.php#L542
src/Mapping/ClassMetadata.php:542:12: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
|
InvalidReturnType:
src/Mapping/ClassMetadata.php#L570
src/Mapping/ClassMetadata.php:570:22: InvalidReturnType: The declared return type 'array<array-key, ReflectionProperty|null>' for Doctrine\ORM\Mapping\ClassMetadata::getReflectionProperties is incorrect, got 'Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty>|array<string, ReflectionProperty>' (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Mapping/ClassMetadata.php#L574
src/Mapping/ClassMetadata.php:574:16: InvalidReturnStatement: The inferred type 'Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty>|array<string, ReflectionProperty>' does not match the declared return type 'array<array-key, ReflectionProperty|null>' for Doctrine\ORM\Mapping\ClassMetadata::getReflectionProperties (see https://psalm.dev/128)
|
InvalidReturnType:
src/Mapping/ClassMetadata.php#L605
src/Mapping/ClassMetadata.php:605:54: InvalidReturnType: The declared return type 'ReflectionProperty|null' for Doctrine\ORM\Mapping\ClassMetadata::getSingleIdReflectionProperty is incorrect, got 'Doctrine\ORM\Mapping\PropertyAccessors\PropertyAccessor' (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Mapping/ClassMetadata.php#L611
src/Mapping/ClassMetadata.php:611:16: InvalidReturnStatement: The inferred type 'Doctrine\ORM\Mapping\PropertyAccessors\PropertyAccessor' does not match the declared return type 'ReflectionProperty|null' for Doctrine\ORM\Mapping\ClassMetadata::getSingleIdReflectionProperty (see https://psalm.dev/128)
|
MissingTemplateParam:
src/Mapping/LegacyReflectionFields.php#L20
src/Mapping/LegacyReflectionFields.php:20:41: MissingTemplateParam: Doctrine\ORM\Mapping\LegacyReflectionFields has missing template params when extending ArrayAccess, expecting 2 (see https://psalm.dev/182)
|
MissingTemplateParam:
src/Mapping/LegacyReflectionFields.php#L20
src/Mapping/LegacyReflectionFields.php:20:54: MissingTemplateParam: Doctrine\ORM\Mapping\LegacyReflectionFields has missing template params when extending IteratorAggregate, expecting 2 (see https://psalm.dev/182)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L65
src/Mapping/LegacyReflectionFields.php:65:70: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty expects class-string, but parent type string provided (see https://psalm.dev/193)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L65
src/Mapping/LegacyReflectionFields.php:65:82: PossiblyNullArgument: Argument 2 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty cannot be null, possibly null value provided (see https://psalm.dev/078)
|
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon):
src/Mapping/ClassMetadata.php#L611
Method Doctrine\ORM\Mapping\ClassMetadata::getSingleIdReflectionProperty() should return ReflectionProperty|null but returns Doctrine\ORM\Mapping\PropertyAccessors\PropertyAccessor.
|
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon):
src/Proxy/ProxyFactory.php#L235
Negated boolean expression is always false.
|
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
Process completed with exit code 1.
|
Static Analysis with Psalm (default)
The job was canceled because "_3_8_2" failed.
|
TooManyTemplateParams:
src/Mapping/ClassMetadata.php#L542
src/Mapping/ClassMetadata.php:542:5: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
|
TooManyTemplateParams:
src/Mapping/ClassMetadata.php#L542
src/Mapping/ClassMetadata.php:542:12: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
|
InvalidReturnType:
src/Mapping/ClassMetadata.php#L570
src/Mapping/ClassMetadata.php:570:22: InvalidReturnType: The declared return type 'array<array-key, ReflectionProperty|null>' for Doctrine\ORM\Mapping\ClassMetadata::getReflectionProperties is incorrect, got 'Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty>|array<string, ReflectionProperty>' (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Mapping/ClassMetadata.php#L574
src/Mapping/ClassMetadata.php:574:16: InvalidReturnStatement: The inferred type 'Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty>|array<string, ReflectionProperty>' does not match the declared return type 'array<array-key, ReflectionProperty|null>' for Doctrine\ORM\Mapping\ClassMetadata::getReflectionProperties (see https://psalm.dev/128)
|
InvalidReturnType:
src/Mapping/ClassMetadata.php#L605
src/Mapping/ClassMetadata.php:605:54: InvalidReturnType: The declared return type 'ReflectionProperty|null' for Doctrine\ORM\Mapping\ClassMetadata::getSingleIdReflectionProperty is incorrect, got 'Doctrine\ORM\Mapping\PropertyAccessors\PropertyAccessor' (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Mapping/ClassMetadata.php#L611
src/Mapping/ClassMetadata.php:611:16: InvalidReturnStatement: The inferred type 'Doctrine\ORM\Mapping\PropertyAccessors\PropertyAccessor' does not match the declared return type 'ReflectionProperty|null' for Doctrine\ORM\Mapping\ClassMetadata::getSingleIdReflectionProperty (see https://psalm.dev/128)
|
MissingTemplateParam:
src/Mapping/LegacyReflectionFields.php#L20
src/Mapping/LegacyReflectionFields.php:20:41: MissingTemplateParam: Doctrine\ORM\Mapping\LegacyReflectionFields has missing template params when extending ArrayAccess, expecting 2 (see https://psalm.dev/182)
|
MissingTemplateParam:
src/Mapping/LegacyReflectionFields.php#L20
src/Mapping/LegacyReflectionFields.php:20:54: MissingTemplateParam: Doctrine\ORM\Mapping\LegacyReflectionFields has missing template params when extending IteratorAggregate, expecting 2 (see https://psalm.dev/182)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L65
src/Mapping/LegacyReflectionFields.php:65:70: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty expects class-string, but parent type string provided (see https://psalm.dev/193)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L65
src/Mapping/LegacyReflectionFields.php:65:82: PossiblyNullArgument: Argument 2 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty cannot be null, possibly null value provided (see https://psalm.dev/078)
|
Static Analysis with PHPStan (default, phpstan.neon)
The job was canceled because "_3_8_2_phpstan-dbal3_neon" failed.
|
Static Analysis with PHPStan (default, phpstan.neon):
src/Mapping/ClassMetadata.php#L611
Method Doctrine\ORM\Mapping\ClassMetadata::getSingleIdReflectionProperty() should return ReflectionProperty|null but returns Doctrine\ORM\Mapping\PropertyAccessors\PropertyAccessor.
|
Static Analysis with PHPStan (default, phpstan.neon):
src/Proxy/ProxyFactory.php#L235
Negated boolean expression is always false.
|
Static Analysis with PHPStan (default, phpstan.neon)
Process completed with exit code 1.
|
Static Analysis with Psalm (3.8.2)
The process '/usr/bin/git' failed with exit code 128
|
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
The process '/usr/bin/git' failed with exit code 128
|
Static Analysis with Psalm (default)
The process '/usr/bin/git' failed with exit code 128
|
Static Analysis with PHPStan (default, phpstan.neon)
The process '/usr/bin/git' failed with exit code 128
|