Skip to content

Commit 89bd1b4

Browse files
committed
minor symfony#57696 [PropertyInfo]  add tests for TypeInfo types (xabbuh)
This PR was merged into the 7.1 branch. Discussion ---------- [PropertyInfo]  add tests for TypeInfo types | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT 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. Commits ------- 93d3209 add tests for TypeInfo types
2 parents 0521e0b + 93d3209 commit 89bd1b4

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)