8000 minor #57837 [PropertyInfo] fix tests (xabbuh) · symfony/symfony@da90fe7 · GitHub
[go: up one dir, main page]

Skip to content

Commit da90fe7

Browse files
committed
minor #57837 [PropertyInfo] fix tests (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [PropertyInfo] fix tests | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 28b0ba0 fix tests
2 parents b360af7 + 28b0ba0 commit da90fe7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
use Symfony\Component\PropertyInfo\Tests\Fixtures\SnakeCaseDummy;
3434
use Symfony\Component\PropertyInfo\Type as LegacyType;
3535
use Symfony\Component\TypeInfo\Type;
36-
use Symfony\Component\TypeInfo\TypeResolver\PhpDocAwareReflectionTypeResolver;
3736

3837
/**
3938
* @author Kévin Dunglas <dunglas@gmail.com>
@@ -698,9 +697,9 @@ public function testExtractors(string $property, ?Type $type)
698697
*/
699698
public static function typesProvider(): iterable
700699
{
701-
yield ['a', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::int() : null];
700+
yield ['a', null];
702701
yield ['b', Type::nullable(Type::object(ParentDummy::class))];
703-
yield ['e', class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::list(Type::resource()) : null];
702+
yield ['e', null];
704703
yield ['f', Type::list(Type::object(\DateTimeImmutable::class))];
705704
yield ['donotexist', null];
706705
yield ['staticGetter', null];
@@ -883,8 +882,8 @@ public function testExtractConstructorType(string $property, ?Type $type)
883882
public static function extractConstructorTypesProvider(): iterable
884883
{
885884
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];
888887
yield ['dateTime', Type::object(\DateTimeImmutable::class)];
889888
yield ['ddd', null];
890889
}

0 commit comments

Comments
 (0)
0