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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy