Necessary refactorings for Property hooks #7848
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
26 errors and 1 warning
MismatchingDocblockReturnType:
src/Mapping/ClassMetadata.php#L573
src/Mapping/ClassMetadata.php:573:22: MismatchingDocblockReturnType: Docblock has incorrect return type 'Doctrine\ORM\Mapping\LegacyReflectionFields|array<array-key, ReflectionProperty>', should be 'array<array-key, mixed>' (see https://psalm.dev/142)
|
LessSpecificImplementedReturnType:
src/Mapping/LegacyReflectionFields.php#L47
src/Mapping/LegacyReflectionFields.php:47:40: LessSpecificImplementedReturnType: The inherited return type 'ReflectionProperty|null' for ArrayAccess::offsetGet is more specific than the implemented return type for Doctrine\ORM\Mapping\LegacyReflectionFields::offsetget 'mixed' (see https://psalm.dev/166)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L73
src/Mapping/LegacyReflectionFields.php:73: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#L73
src/Mapping/LegacyReflectionFields.php:73:82: PossiblyNullArgument: Argument 2 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L78
src/Mapping/LegacyReflectionFields.php:78:25: PossiblyNullArgument: Argument 1 of Doctrine\Persistence\Reflection\EnumReflectionProperty::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L93
src/Mapping/LegacyReflectionFields.php:93:25: PossiblyNullArgument: Argument 1 of Doctrine\ORM\Mapping\ReflectionEmbeddedProperty::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L93
src/Mapping/LegacyReflectionFields.php:93:54: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty expects class-string, but parent type null|string provided (see https://psalm.dev/193)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L93
src/Mapping/LegacyReflectionFields.php:93:54: PossiblyNullArgument: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L94
src/Mapping/LegacyReflectionFields.php:94:25: PossiblyNullArgument: Argument 2 of Doctrine\ORM\Mapping\ReflectionEmbeddedProperty::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L95
src/Mapping/LegacyReflectionFields.php:95:25: ArgumentTypeCoercion: Argument 3 of Doctrine\ORM\Mapping\ReflectionEmbeddedProperty::__construct expects class-string, but parent type null|string provided (see https://psalm.dev/193)
|
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon):
src/Mapping/ClassMetadata.php#L575
PHPDoc tag @return with type array<ReflectionProperty>|Doctrine\ORM\Mapping\LegacyReflectionFields is not subtype of native type array.
|
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
Process completed with exit code 1.
|
Static Analysis with Psalm (3.8.2)
The job was canceled because "default" failed.
|
MismatchingDocblockReturnType:
src/Mapping/ClassMetadata.php#L573
src/Mapping/ClassMetadata.php:573:22: MismatchingDocblockReturnType: Docblock has incorrect return type 'Doctrine\ORM\Mapping\LegacyReflectionFields|array<array-key, ReflectionProperty>', should be 'array<array-key, mixed>' (see https://psalm.dev/142)
|
LessSpecificImplementedReturnType:
src/Mapping/LegacyReflectionFields.php#L47
src/Mapping/LegacyReflectionFields.php:47:40: LessSpecificImplementedReturnType: The inherited return type 'ReflectionProperty|null' for ArrayAccess::offsetGet is more specific than the implemented return type for Doctrine\ORM\Mapping\LegacyReflectionFields::offsetget 'mixed' (see https://psalm.dev/166)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L73
src/Mapping/LegacyReflectionFields.php:73: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#L73
src/Mapping/LegacyReflectionFields.php:73:82: PossiblyNullArgument: Argument 2 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L78
src/Mapping/LegacyReflectionFields.php:78:25: PossiblyNullArgument: Argument 1 of Doctrine\Persistence\Reflection\EnumReflectionProperty::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L93
src/Mapping/LegacyReflectionFields.php:93:25: PossiblyNullArgument: Argument 1 of Doctrine\ORM\Mapping\ReflectionEmbeddedProperty::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L93
src/Mapping/LegacyReflectionFields.php:93:54: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty expects class-string, but parent type null|string provided (see https://psalm.dev/193)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L93
src/Mapping/LegacyReflectionFields.php:93:54: PossiblyNullArgument: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Mapping/LegacyReflectionFields.php#L94
src/Mapping/LegacyReflectionFields.php:94:25: PossiblyNullArgument: Argument 2 of Doctrine\ORM\Mapping\ReflectionEmbeddedProperty::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
ArgumentTypeCoercion:
src/Mapping/LegacyReflectionFields.php#L95
src/Mapping/LegacyReflectionFields.php:95:25: ArgumentTypeCoercion: Argument 3 of Doctrine\ORM\Mapping\ReflectionEmbeddedProperty::__construct expects class-string, but parent type null|string provided (see https://psalm.dev/193)
|
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#L575
PHPDoc tag @return with type array<ReflectionProperty>|Doctrine\ORM\Mapping\LegacyReflectionFields is not subtype of native type array.
|
Static Analysis with PHPStan (default, phpstan.neon)
The operation was canceled.
|
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/
|