Skip to content

Commit

Permalink
Remove mentions of undefined Doctrine constants Types::ARRAY and Type…
Browse files Browse the repository at this point in the history
…s::OBJECT
  • Loading branch information
njutn95 authored and weaverryan committed Feb 5, 2024
1 parent dfa4737 commit a456435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Doctrine/DoctrineHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,14 @@ public static function getPropertyTypeForColumn(string $columnType): ?string
{
return match ($columnType) {
Types::STRING, Types::TEXT, Types::GUID, Types::BIGINT, Types::DECIMAL => 'string',
Types::ARRAY, Types::SIMPLE_ARRAY, Types::JSON => 'array',
'array', Types::SIMPLE_ARRAY, Types::JSON => 'array',
Types::BOOLEAN => 'bool',
Types::INTEGER, Types::SMALLINT => 'int',
Types::FLOAT => 'float',
Types::DATETIME_MUTABLE, Types::DATETIMETZ_MUTABLE, Types::DATE_MUTABLE, Types::TIME_MUTABLE => '\\'.\DateTimeInterface::class,
Types::DATETIME_IMMUTABLE, Types::DATETIMETZ_IMMUTABLE, Types::DATE_IMMUTABLE, Types::TIME_IMMUTABLE => '\\'.\DateTimeImmutable::class,
Types::DATEINTERVAL => '\\'.\DateInterval::class,
Types::OBJECT => 'object',
'object' => 'object',
'uuid' => '\\'.Uuid::class,
'ulid' => '\\'.Ulid::class,
default => null,
Expand Down

0 comments on commit a456435

Please sign in to comment.