diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php index 9dd33ff9658f4..892a7e4d30acc 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php @@ -840,7 +840,10 @@ public static function unionTypesProvider(): iterable Type::generic( Type::object(Dummy::class), Type::array(Type::string(), Type::mixed()), - Type::union(Type::int(), Type::list(Type::generic(Type::string(), Type::object(DefaultValue::class)))), + Type::union( + Type::int(), + Type::list(Type::collection(Type::object(\Traversable::class), Type::object(DefaultValue::class))), + ), ), Type::object(ParentDummy::class), Type::null(),