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 babd9be

Browse filesBrowse files
minor #57530 [PropertyInfo] Fix generics related test (mtarld)
This PR was merged into the 7.1 branch. Discussion ---------- [PropertyInfo] Fix generics related test | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | | License | MIT Update tests accordingly to #52699 (in the same way as the legacy tests). Commits ------- 9245561 [PropertyInfo] Fix generics related test
2 parents d69938c + 9245561 commit babd9be
Copy full SHA for babd9be

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,10 @@ public static function unionTypesProvider(): iterable
840840
Type::generic(
841841
Type::object(Dummy::class),
842842
Type::array(Type::string(), Type::mixed()),
843-
Type::union(Type::int(), Type::list(Type::generic(Type::string(), Type::object(DefaultValue::class)))),
843+
Type::union(
844+
Type::int(),
845+
Type::list(Type::collection(Type::object(\Traversable::class), Type::object(DefaultValue::class))),
846+
),
844847
),
845848
Type::object(ParentDummy::class),
846849
Type::null(),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.