We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e3574f commit 347ffe9Copy full SHA for 347ffe9
src/Number.php
@@ -338,7 +338,7 @@ private static function parse_int( $value ) {
338
throw new \InvalidArgumentException(
339
\sprintf(
340
'Number::parse_int() function only accepts integers. Input was: %s',
341
- \esc_html( \wp_json_encode( $value ) )
+ \esc_html( (string) \wp_json_encode( $value ) )
342
)
343
);
344
}
@@ -365,7 +365,7 @@ private static function parse_float( $value ) {
365
366
367
'Number::from_float() function only accepts floats. Input was: %s',
368
369
370
371
0 commit comments