Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PropertyInfo] fix tests#57825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:7.1fromxabbuh:pr-57618
Jul 26, 2024
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix tests
  • Loading branch information
@xabbuh
xabbuh committedJul 25, 2024
commit7192dd179d9af0959a401c57dbe2b9c24086148a
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,6 +33,7 @@
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 <dunglas@gmail.com>
Expand DownExpand Up@@ -696,9 +697,9 @@ public function testExtractors(string $property, ?Type $type)
*/
public static function typesProvider(): iterable
{
yield ['a', null];
yield ['a',class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::int() :null];
yield ['b', Type::nullable(Type::object(ParentDummy::class))];
yield ['e', null];
yield ['e',class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::list(Type::resource()) :null];
yield ['f', Type::list(Type::object(\DateTimeImmutable::class))];
yield ['donotexist', null];
yield ['staticGetter', null];
Expand DownExpand Up@@ -881,8 +882,8 @@ public function testExtractConstructorType(string $property, ?Type $type)
public static function extractConstructorTypesProvider(): iterable
{
yield ['timezone', Type::object(\DateTimeZone::class)];
yield ['date', null];
yield ['dateObject', null];
yield ['date',class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::int() :null];
yield ['dateObject',class_exists(PhpDocAwareReflectionTypeResolver::class) ? Type::object(\DateTimeInterface::class) :null];
yield ['dateTime', Type::object(\DateTimeImmutable::class)];
yield ['ddd', null];
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp