Skip to content

Commit

Permalink
Ignore new phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
scaytrase committed Jan 27, 2023
1 parent f9f0417 commit f419f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Schema/TypeFormats/NumberDouble.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class NumberDouble
*/
public function __invoke($value): bool
{
// treat integers as valid floats
// @phpstan-ignore-next-line treat integers as valid floats
return is_float($value + 0) || is_int($value + 0);
}
}
2 changes: 1 addition & 1 deletion src/Schema/TypeFormats/NumberFloat.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class NumberFloat
*/
public function __invoke($value): bool
{
// treat integers as valid floats
// @phpstan-ignore-next-line treat integers as valid floats
return is_float($value + 0) || is_int($value + 0);
}
}

0 comments on commit f419f8e

Please sign in to comment.