Skip to content

Commit

Permalink
Change property Schema::$typeMap to constant Schema::TYPE_MAP
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 16, 2023
1 parent dae9a9c commit 6d03dab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
final class Schema extends AbstractPdoSchema
{
/**
* @var array The mapping from physical column types (keys) to abstract column types (values).
* The mapping from physical column types (keys) to abstract column types (values).
*
* @link https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/Data-Types.html
*
* @psalm-var string[]
* @var string[]
*/
private array $typeMap = [
private const TYPE_MAP = [
'char' => self::TYPE_CHAR,
'nchar' => self::TYPE_CHAR,
'varchar2' => self::TYPE_STRING,
Expand Down Expand Up @@ -664,7 +664,7 @@ private function extractColumnType(ColumnSchemaInterface $column): string
return self::TYPE_STRING;
}

return $this->typeMap[$dbType] ?? self::TYPE_STRING;
return self::TYPE_MAP[$dbType] ?? self::TYPE_STRING;
}

/**
Expand Down

0 comments on commit 6d03dab

Please sign in to comment.