File tree 3 files changed +5
-1
lines changed
tests/Console/ModelsCommand/SimpleCasts/__snapshots__
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.
8
8
### Changed
9
9
- Add support for multiple pivot types when using the same accessor.
10
10
- Smarter reset, keep tags that IDE helper doesn't use
11
+ - Use ` numeric ` type on fields with ` decimal ` casts
12
+
11
13
12
14
2024-10-18, 3.2.0
13
15
--------------
Original file line number Diff line number Diff line change @@ -381,6 +381,8 @@ public function castPropertiesType($model)
381
381
$ realType = 'bool ' ;
382
382
break ;
383
383
case 'decimal ' :
384
+ $ realType = 'numeric ' ;
385
+ break ;
384
386
case 'string ' :
385
387
case 'hashed ' :
386
388
$ realType = 'string ' ;
Original file line number Diff line number Diff line change 14
14
* @property float $cast_to_real
15
15
* @property float $cast_to_float
16
16
* @property float $cast_to_double
17
- * @property string $cast_to_decimal
17
+ * @property numeric $cast_to_decimal
18
18
* @property string $cast_to_string
19
19
* @property bool $cast_to_bool
20
20
* @property bool $cast_to_boolean
You can’t perform that action at this time.
0 commit comments