From 8feb6ec4fee4d0fc2a86192022dca61f8ec524ec Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Tue, 13 Jun 2023 09:44:00 -0700 Subject: [PATCH] Source constants from Types instead of Type The test should have been reworked within https://github.com/doctrine/dbal/pull/3356. --- tests/Types/TypeTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Types/TypeTest.php b/tests/Types/TypeTest.php index 81e409440e2..e6999eabfce 100644 --- a/tests/Types/TypeTest.php +++ b/tests/Types/TypeTest.php @@ -5,6 +5,7 @@ namespace Doctrine\DBAL\Tests\Types; use Doctrine\DBAL\Types\Type; +use Doctrine\DBAL\Types\Types; use PHPUnit\Framework\TestCase; use ReflectionClass; @@ -19,7 +20,7 @@ public function testDefaultTypesAreRegistered(string $name): void /** @return iterable */ public static function defaultTypesProvider(): iterable { - foreach ((new ReflectionClass(Type::class))->getReflectionConstants() as $constant) { + foreach ((new ReflectionClass(Types::class))->getReflectionConstants() as $constant) { if (! $constant->isPublic()) { continue; }