Skip to content

Necessary refactorings for Property hooks #7778

Necessary refactorings for Property hooks

Necessary refactorings for Property hooks #7778

Triggered via pull request October 10, 2024 22:18
Status Failure
Total duration 49s
Artifacts

static-analysis.yml

on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Fit to window
Zoom out
Zoom in

Annotations

42 errors and 5 warnings
TooManyTemplateParams: src/Mapping/ClassMetadata.php#L544
src/Mapping/ClassMetadata.php:544: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#L544
src/Mapping/ClassMetadata.php:544:12: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
TooManyTemplateParams: src/Mapping/ClassMetadata.php#L572
src/Mapping/ClassMetadata.php:572:22: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
MissingTemplateParam: src/Mapping/LegacyReflectionFields.php#L12
src/Mapping/LegacyReflectionFields.php:12: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#L12
src/Mapping/LegacyReflectionFields.php:12:55: MissingTemplateParam: Doctrine\ORM\Mapping\LegacyReflectionFields has missing template params when extending IteratorAggregate, expecting 2 (see https://psalm.dev/182)
ArgumentTypeCoercion: src/Mapping/LegacyReflectionFields.php#L45
src/Mapping/LegacyReflectionFields.php:45: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#L45
src/Mapping/LegacyReflectionFields.php:45: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#L50
src/Mapping/LegacyReflectionFields.php:50: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#L65
src/Mapping/LegacyReflectionFields.php:65: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#L65
src/Mapping/LegacyReflectionFields.php:65:54: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty expects class-string, but parent type null|string provided (see https://psalm.dev/193)
Static Analysis with Psalm (3.8.2)
The job was canceled because "default" failed.
TooManyTemplateParams: src/Mapping/ClassMetadata.php#L544
src/Mapping/ClassMetadata.php:544: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#L544
src/Mapping/ClassMetadata.php:544:12: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
TooManyTemplateParams: src/Mapping/ClassMetadata.php#L572
src/Mapping/ClassMetadata.php:572:22: TooManyTemplateParams: Doctrine\ORM\Mapping\LegacyReflectionFields<string, ReflectionProperty> has too many template params, expecting 0 (see https://psalm.dev/184)
MissingTemplateParam: src/Mapping/LegacyReflectionFields.php#L12
src/Mapping/LegacyReflectionFields.php:12: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#L12
src/Mapping/LegacyReflectionFields.php:12:55: MissingTemplateParam: Doctrine\ORM\Mapping\LegacyReflectionFields has missing template params when extending IteratorAggregate, expecting 2 (see https://psalm.dev/182)
ArgumentTypeCoercion: src/Mapping/LegacyReflectionFields.php#L45
src/Mapping/LegacyReflectionFields.php:45: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#L45
src/Mapping/LegacyReflectionFields.php:45: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#L50
src/Mapping/LegacyReflectionFields.php:50: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#L65
src/Mapping/LegacyReflectionFields.php:65: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#L65
src/Mapping/LegacyReflectionFields.php:65:54: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty expects class-string, but parent type null|string provided (see https://psalm.dev/193)
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L36
Parameter $enum of anonymous function has invalid type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L37
Access to property $value on an unknown class Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid return type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid return type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid return type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Parameter $value of method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Parameter $value of method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L51
Class Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum not found.
Static Analysis with PHPStan (default, phpstan.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L57
Class Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum not found.
Static Analysis with PHPStan (default, phpstan.neon)
Process completed with exit code 1.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
The job was canceled because "default_phpstan_neon" failed.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L36
Parameter $enum of anonymous function has invalid type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L37
Access to property $value on an unknown class Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid return type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid return type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid return type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Parameter $value of method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L49
Parameter $value of method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() has invalid type Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L51
Class Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum not found.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon): src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L57
Class Doctrine\ORM\Mapping\PropertyAccessors\BackedEnum not found.
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
The operation was canceled.
Static Analysis with Psalm (default)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with Psalm (3.8.2)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with PHPStan (default, phpstan.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 (default, phpstan.neon)
The process '/usr/bin/git' failed with exit code 128
Static Analysis with PHPStan (3.8.2, phpstan-dbal3.neon)
The process '/usr/bin/git' failed with exit code 128