Refactor normalizers: update getSupportedTypes to include '*' => false, improve return type handling, and add dedicated test classes for SocialAction, SocialIssue, and other entities.

This commit is contained in:
2026-01-09 16:31:34 +01:00
parent 8ceb937e0e
commit 21cd0f7c45
14 changed files with 233 additions and 35 deletions

View File

@@ -86,6 +86,6 @@ class RelationshipDocGenNormalizer implements NormalizerInterface, NormalizerAwa
public function getSupportedTypes(?string $format): array
{
return 'docgen' === $format ? [Relationship::class => true] : [];
return 'docgen' === $format ? [Relationship::class => true, '*' => false] : [];
}
}