Skip to content

Commit d899710

Browse files
authored
refactor(metadata): use logic from ResourceClassInfoTrait (#7928)
1 parent a149397 commit d899710

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Metadata/Property/Factory/SerializerPropertyMetadataFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ private function transformLinkStatus(ApiProperty $propertyMetadata, string $prop
200200
return $propertyMetadata;
201201
}
202202

203-
$collectionValueType = TypeHelper::getCollectionValueType($type);
204-
$className = $collectionValueType ? TypeHelper::getClassName($collectionValueType) : TypeHelper::getClassName($type);
203+
$className = $this->extractClassNameFromType($type);
205204

206205
// if property is not a resource relation, don't set link status (as it would have no meaning)
207206
if (!$className || !$this->isResourceClass($className)) {

0 commit comments

Comments
 (0)