Skip to content

Commit 9245561

Browse files
committed
[PropertyInfo] Fix generics related test
1 parent d69938c commit 9245561

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines 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)