Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug Doctrine\\Common\\Lexer\\Token::__construct(): Argument #1 ($… #119

Closed
wants to merge 1 commit into from

Conversation

SakhriHoussem
Copy link

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

…ine#1 ($value) must be of type string|int, float given, called in vendor/doctrine/lexer/src/AbstractLexer.php on line 261 Token.php

fix bug Doctrine\\Common\\Lexer\\Token::__construct(): Argument doctrine#1 ($value) must be of type string|int, float given, called in vendor/doctrine/lexer/src/AbstractLexer.php on line 261 Token.php
Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but I don't understand this change.

Just an arbitrary exception message, without context, without a reproducer… That's not an acceptable bug report.

@PowerKiKi
Copy link

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.

@PowerKiKi
Copy link

Because the replacement #124 has been merged, this PR should now be rejected.

@greg0ire greg0ire closed this Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants