mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
* Fix #480 where tinyint is casts as bool `tinyint` is classified by bool as doctrine/dbal, but it should not be so in our use case. `tinyint` is better PHPDoc'ed as int. If the user wants bool, he should use Eloquent's `$casts` property to do that. * Pass PSR-2 check * Remove comment as requested
This commit is contained in:
@@ -347,15 +347,13 @@ class ModelsCommand extends Command
|
|||||||
case 'integer':
|
case 'integer':
|
||||||
case 'bigint':
|
case 'bigint':
|
||||||
case 'smallint':
|
case 'smallint':
|
||||||
|
case 'boolean':
|
||||||
$type = 'integer';
|
$type = 'integer';
|
||||||
break;
|
break;
|
||||||
case 'decimal':
|
case 'decimal':
|
||||||
case 'float':
|
case 'float':
|
||||||
$type = 'float';
|
$type = 'float';
|
||||||
break;
|
break;
|
||||||
case 'boolean':
|
|
||||||
$type = 'boolean';
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
$type = 'mixed';
|
$type = 'mixed';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user