Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 89bd1b4

Browse filesBrowse files
committed
minor #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 #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
Copy full SHA for 89bd1b4

File tree

2 files changed

+2
-0
lines changed
Filter options

2 files changed

+2
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php
+1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.