Necessary refactorings for Property hooks #7945
Annotations
10 errors
Run static analysis with phpstan/phpstan:
src/Mapping/ClassMetadata.php#L1
Ignored error pattern #^Parameter \#1 \$class of method Doctrine\\Persistence\\Mapping\\ReflectionService\:\:getAccessibleProperty\(\) expects class\-string, string given\.$# (argument.type) in path /home/runner/work/orm/orm/src/Mapping/ClassMetadata.php was not matched in reported errors.
|
Run static analysis with phpstan/phpstan:
src/Mapping/ClassMetadata.php#L1
Ignored error pattern #^Parameter \#2 \$class of method Doctrine\\ORM\\Mapping\\ClassMetadata\<T of object\>\:\:getAccessibleProperty\(\) expects class\-string, string given\.$# (argument.type) in path /home/runner/work/orm/orm/src/Mapping/ClassMetadata.php was not matched in reported errors.
|
Run static analysis with phpstan/phpstan:
src/Mapping/ClassMetadata.php#L1
Ignored error pattern #^Parameter \#3 \$embeddedClass of class Doctrine\\ORM\\Mapping\\ReflectionEmbeddedProperty constructor expects class\-string, string given\.$# (argument.type) in path /home/runner/work/orm/orm/src/Mapping/ClassMetadata.php was not matched in reported errors.
|
Run static analysis with phpstan/phpstan:
src/Mapping/ClassMetadata.php#L874
Parameter #3 $embeddedClass of class Doctrine\ORM\Mapping\PropertyAccessors\EmbeddablePropertyAccessor constructor expects class-string, string given.
|
Run static analysis with phpstan/phpstan:
src/Mapping/ClassMetadata.php#L2692
PHPDoc tag @param references unknown parameter: $class
|
Run static analysis with phpstan/phpstan:
src/Mapping/LegacyReflectionFields.php#L32
Method Doctrine\ORM\Mapping\LegacyReflectionFields::__construct() has parameter $classMetadata with generic class Doctrine\ORM\Mapping\ClassMetadata but does not specify its types: T
|
Run static analysis with phpstan/phpstan:
src/Mapping/LegacyReflectionFields.php#L82
Parameter #1 $class of method Doctrine\ORM\Mapping\LegacyReflectionFields::getAccessibleProperty() expects class-string, string given.
|
Run static analysis with phpstan/phpstan:
src/Mapping/LegacyReflectionFields.php#L144
Parameter #1 $class of method Doctrine\Persistence\Mapping\ReflectionService::getAccessibleProperty() expects class-string, string given.
|
Run static analysis with phpstan/phpstan:
src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L74
Method Doctrine\ORM\Mapping\PropertyAccessors\EnumPropertyAccessor::toEnum() should return array<BackedEnum>|BackedEnum but returns array<BackedEnum|int|string>.
|
Run static analysis with phpstan/phpstan:
src/Mapping/PropertyAccessors/EnumPropertyAccessor.php#L77
Parameter #1 $callback of function array_map expects (callable(BackedEnum|int|string): mixed)|null, array{class-string<BackedEnum>, 'from'} given.
|
Loading