Skip to content

Commit

Permalink
Use int/bool instead of longer variant
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Feb 19, 2024
1 parent 9af62e2 commit c97842a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Console/ModelsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function castPropertiesType($model)
break;
case 'boolean':
case 'bool':
$realType = 'boolean';
$realType = 'bool';
break;
case 'decimal':
case 'string':
Expand All @@ -394,7 +394,7 @@ public function castPropertiesType($model)
case 'int':
case 'integer':
case 'timestamp':
$realType = 'integer';
$realType = 'int';
break;
case 'real':
case 'double':
Expand Down Expand Up @@ -521,9 +521,9 @@ public function getPropertiesFromTable($model)
'integer', 'int', 'int4',
'smallint', 'int2',
'mediumint',
'bigint', 'int8' => 'integer',
'bigint', 'int8' => 'int',

'boolean', 'bool' => 'boolean',
'boolean', 'bool' => 'bool',

'float', 'real', 'float4',
'double', 'float8' => 'float',
Expand Down

0 comments on commit c97842a

Please sign in to comment.