Skip to content

Commit 93d3209

Browse files
committed
add tests for TypeInfo types
This change ensures that the tests that have been added in symfony#57617 are also applied when the types from the TypeInfo component are used instead of the Type class that is built into the PropertyInfo component.
1 parent 0521e0b commit 93d3209

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ public static function typeProvider(): iterable
571571
yield ['arrayOfMixed', Type::dict(Type::mixed()), null, null];
572572
yield ['listOfStrings', Type::list(Type::string()), null, null];
573573
yield ['self', Type::object(Dummy::class), null, null];
574+
yield ['collectionAsObject', Type::collection(Type::object(DummyCollection::class), Type::string(), Type::int()), null, null];
574575
}
575576

576577
/**

src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ public static function typesProvider(): iterable
594594
yield ['self', Type::object(Dummy::class)];
595595
yield ['rootDummyItems', Type::list(Type::object(RootDummyItem::class))];
596596
yield ['rootDummyItem', Type::object(RootDummyItem::class)];
597+
yield ['collectionAsObject', Type::collection(Type::object(DummyCollection::class), Type::string(), Type::int())];
597598
}
598599

599600
public function testParamTagTypeIsOmitted()

0 commit comments

Comments
 (0)