Fix #480 where tinyint is casts as bool (#481)

* 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:
JC Lee
2017-04-05 09:45:19 +02:00
committed by Barry vd. Heuvel
parent 75e1f22ec6
commit d11bf58084
+1 -3
View File
@@ -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;