|
2 | 2 |
|
3 | 3 | namespace PHPStan\Rules\Doctrine\ORM;
|
4 | 4 |
|
5 | | -use Doctrine\ORM\Mapping\ClassMetadataInfo; |
| 5 | +use Doctrine\ORM\Mapping\ClassMetadata; |
6 | 6 | use PHPStan\Reflection\PropertyReflection;
|
7 | 7 | use PHPStan\Rules\Properties\ReadWritePropertiesExtension;
|
8 | 8 | use PHPStan\Type\Doctrine\ObjectMetadataResolver;
|
@@ -47,7 +47,7 @@ public function isAlwaysWritten(PropertyReflection $property, string $propertyNa
|
47 | 47 |
|
48 | 48 | if (isset($metadata->fieldMappings[$propertyName])) {
|
49 | 49 | $mapping = $metadata->fieldMappings[$propertyName];
|
50 | | - if (array_key_exists('generated', $mapping) && $mapping['generated'] !== ClassMetadataInfo::GENERATED_NEVER) { |
| 50 | + if (array_key_exists('generated', $mapping) && $mapping['generated'] !== ClassMetadata::GENERATED_NEVER) { |
51 | 51 | return true;
|
52 | 52 | }
|
53 | 53 | }
|
@@ -84,9 +84,9 @@ public function isInitialized(PropertyReflection $property, string $propertyName
|
84 | 84 | }
|
85 | 85 |
|
86 | 86 | /**
|
87 | | - * @param ClassMetadataInfo<object> $metadata |
| 87 | + * @param ClassMetadata<object> $metadata |
88 | 88 | */
|
89 | | - private function isGeneratedIdentifier(ClassMetadataInfo $metadata, string $propertyName): bool |
| 89 | + private function isGeneratedIdentifier(ClassMetadata $metadata, string $propertyName): bool |
90 | 90 | {
|
91 | 91 | if ($metadata->isIdentifierNatural()) {
|
92 | 92 | return false;
|
|
0 commit comments