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 6f1a5d4 commit c0cfac9Copy full SHA for c0cfac9
src/ParserHelper.php
@@ -47,7 +47,7 @@ public static function convertCodepointToCharacter(int $char): string
47
public static function convertToNumber(string $text)
48
{
49
// thanks to #andig for the fix for big integers
50
- if (filter_var($text, FILTER_VALIDATE_INT) && (float) $text === (float) ((int) $text)) {
+ if (filter_var($text, FILTER_VALIDATE_INT) !== false && (float) $text === (float) ((int) $text)) {
51
// natural number PHP_INT_MIN < $num < PHP_INT_MAX
52
return (int) $text;
53
}
0 commit comments