diff --git a/src/Models/Model.php b/src/Models/Model.php index 5ddc042..1fb0285 100644 --- a/src/Models/Model.php +++ b/src/Models/Model.php @@ -328,6 +328,8 @@ public function isPropertyTypeValid( string $key, $value ) : bool { return is_bool( $value ); case 'array': return is_array( $value ); + case 'float': + return is_float( $value ); default: return $value instanceof $type; }