|
33 | 33 | use Symfony\Component\PropertyInfo\Tests\Fixtures\SnakeCaseDummy;
|
34 | 34 | use Symfony\Component\PropertyInfo\Type as LegacyType;
|
35 | 35 | use Symfony\Component\TypeInfo\Type;
|
36 |
| -use Symfony\Component\TypeInfo\TypeResolver\PhpDocAwareReflectionTypeResolver; |
37 | 36 |
|
38 | 37 | /**
|
39 | 38 | * @author Kévin Dunglas <dunglas@gmail.com>
|
@@ -698,9 +697,9 @@ public function testExtractors(string $property, ?Type $type)
|
698 | 697 | */
|
699 | 698 | public static function typesProvider(): iterable
|
700 | 699 | {
|
701 |
| - yield ['a', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::int() : null]; |
| 700 | + yield ['a', null]; |
702 | 701 | yield ['b', Type::nullable(Type::object(ParentDummy::class))];
|
703 |
| - yield ['e', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::list(Type::resource()) : null]; |
| 702 | + yield ['e', null]; |
704 | 703 | yield ['f', Type::list(Type::object(\DateTimeImmutable::class))];
|
705 | 704 | yield ['donotexist', null];
|
706 | 705 | yield ['staticGetter', null];
|
@@ -883,8 +882,8 @@ public function testExtractConstructorType(string $property, ?Type $type)
|
883 | 882 | public static function extractConstructorTypesProvider(): iterable
|
884 | 883 | {
|
885 | 884 | yield ['timezone', Type::object(\DateTimeZone::class)];
|
886 |
| - yield ['date', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::int() : null]; |
887 |
| - yield ['dateObject', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::object(\DateTimeInterface::class) : null]; |
| 885 | + yield ['date', null]; |
| 886 | + yield ['dateObject', null]; |
888 | 887 | yield ['dateTime', Type::object(\DateTimeImmutable::class)];
|
889 | 888 | yield ['ddd', null];
|
890 | 889 | }
|
|
0 commit comments