Skip to content

Commit ee81a5d

Browse files
authored
test(serializer): skip union-collection IRI test on legacy property-info (#8355)
1 parent b3f02f4 commit ee81a5d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Serializer/Tests/AbstractItemNormalizerTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,12 @@ public function testUnionTypeDenormalizationFallsThroughAfterTypeConfusionGuardM
12871287

12881288
public function testUnionTypeCollectionDenormalizationAcceptsAnyMember(): void
12891289
{
1290+
// The union-collection IRI guard relies on the native type; the legacy
1291+
// property-info path (< 7.1) only keeps the first collection value type.
1292+
if (!method_exists(PropertyInfoExtractor::class, 'getType')) {
1293+
$this->markTestSkipped('Requires symfony/property-info >= 7.1 (native types).');
1294+
}
1295+
12901296
$data = ['attachments' => ['/related_dummies/1']];
12911297
$relatedDummy = new RelatedDummy();
12921298

0 commit comments

Comments
 (0)