Skip to content

Commit

Permalink
Fix some PHPStan issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Aug 12, 2024
1 parent 5e3574f commit 347ffe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ private static function parse_int( $value ) {
throw new \InvalidArgumentException(
\sprintf(
'Number::parse_int() function only accepts integers. Input was: %s',
\esc_html( \wp_json_encode( $value ) )
\esc_html( (string) \wp_json_encode( $value ) )
)
);
}
Expand All @@ -365,7 +365,7 @@ private static function parse_float( $value ) {
throw new \InvalidArgumentException(
\sprintf(
'Number::from_float() function only accepts floats. Input was: %s',
\esc_html( \wp_json_encode( $value ) )
\esc_html( (string) \wp_json_encode( $value ) )
)
);
}
Expand Down

0 comments on commit 347ffe9

Please sign in to comment.