diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php index b35c999d7b5e0..30018cd3c4662 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php @@ -33,7 +33,6 @@ use Symfony\Component\PropertyInfo\Tests\Fixtures\SnakeCaseDummy; use Symfony\Component\PropertyInfo\Type as LegacyType; use Symfony\Component\TypeInfo\Type; -use Symfony\Component\TypeInfo\TypeResolver\PhpDocAwareReflectionTypeResolver; /** * @author Kévin Dunglas @@ -698,9 +697,9 @@ public function testExtractors(string $property, ?Type $type) */ public static function typesProvider(): iterable { - yield ['a', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::int() : null]; + yield ['a', null]; yield ['b', Type::nullable(Type::object(ParentDummy::class))]; - yield ['e', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::list(Type::resource()) : null]; + yield ['e', null]; yield ['f', Type::list(Type::object(\DateTimeImmutable::class))]; yield ['donotexist', null]; yield ['staticGetter', null]; @@ -883,8 +882,8 @@ public function testExtractConstructorType(string $property, ?Type $type) public static function extractConstructorTypesProvider(): iterable { yield ['timezone', Type::object(\DateTimeZone::class)]; - yield ['date', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::int() : null]; - yield ['dateObject', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::object(\DateTimeInterface::class) : null]; + yield ['date', null]; + yield ['dateObject', null]; yield ['dateTime', Type::object(\DateTimeImmutable::class)]; yield ['ddd', null]; }