We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8ec57f + 0e64f87 commit 5bf5687Copy full SHA for 5bf5687
Mapping/Loader/PropertyInfoLoader.php
@@ -172,7 +172,7 @@ public function loadClassMetadata(ClassMetadata $metadata): bool
172
*/
173
private function getPropertyTypes(string $className, string $property): TypeInfoType|array|null
174
{
175
- if (method_exists($this->typeExtractor, 'getType')) {
+ if (class_exists(TypeInfoType::class) && method_exists($this->typeExtractor, 'getType')) {
176
return $this->typeExtractor->getType($className, $property);
177
}
178
0 commit comments