Skip to content

Commit

Permalink
Source constants from Types instead of Type
Browse files Browse the repository at this point in the history
The test should have been reworked within doctrine#3356.
  • Loading branch information
morozov committed Jun 14, 2023
1 parent bf280f1 commit 800be40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Types/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -19,7 +20,7 @@ public function testDefaultTypesAreRegistered(string $name): void
/** @return iterable<string[]> */
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;
}
Expand Down

0 comments on commit 800be40

Please sign in to comment.