Skip to content

Commit

Permalink
Update src/Models/Model.php
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Adams <[email protected]>
  • Loading branch information
stratease and JasonTheAdams authored Sep 6, 2024
1 parent 8cf8beb commit db4ed70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ public function isPropertyTypeValid( string $key, $value ) : bool {
return is_array( $value );
case 'float':
return is_float( $value );
case 'numeric':
return is_numeric( $value );
case 'number':
return is_int( $value ) || is_float( $value );
default:
return $value instanceof $type;
}
Expand Down

0 comments on commit db4ed70

Please sign in to comment.