Skip to content

Commit

Permalink
Adding float as valid type.
Browse files Browse the repository at this point in the history
  • Loading branch information
stratease committed Aug 30, 2024
1 parent 7c21d23 commit b7a2b4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b7a2b4a

Please sign in to comment.