Skip to content

Commit babd9be

Browse 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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
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)