We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
numeric-string
decimal
1 parent 643329d commit 29c4f05Copy full SHA for 29c4f05
src/Console/ModelsCommand.php
@@ -381,6 +381,8 @@ public function castPropertiesType($model)
381
$realType = 'bool';
382
break;
383
case 'decimal':
384
+ $realType = 'numeric-string';
385
+ break;
386
case 'string':
387
case 'hashed':
388
$realType = 'string';
tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php
@@ -14,7 +14,7 @@
14
* @property float $cast_to_real
15
* @property float $cast_to_float
16
* @property float $cast_to_double
17
- * @property string $cast_to_decimal
+ * @property numeric-string $cast_to_decimal
18
* @property string $cast_to_string
19
* @property bool $cast_to_bool
20
* @property bool $cast_to_boolean
0 commit comments