Closed SakhriHoussem closed 1 month ago
I am having the same issue, which would be solved by this PR.
The issue is that it is possible that the value is numeric as written in the comment, but in PHP numeric means int|float
. int
by itself is not enough, and we must allow float
to be able parse float values.
Because the replacement #124 has been merged, this PR should now be rejected.
fix bug Doctrine\Common\Lexer\Token::__construct(): Argument #1 ($value) must be of type string|int, float given, called in vendor/doctrine/lexer/src/AbstractLexer.php on line 261 Token.php