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 formatParameter() for floats #1374

Merged
merged 1 commit into from Nov 19, 2023

Conversation

derrabus
Copy link
Member

Q A
Type bug
BC Break no
Fixed issues Fix #1373

Copy link
Member

@SenseException SenseException left a comment

Choose a reason for hiding this comment

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

You already asked it in the issue, but I'd also like to know if this will fix @BigMichi1's problem.

Comment on lines +75 to 76
if (is_int($value) || is_string($value) || is_float($value)) {
return (string) $value;
Copy link
Member

Choose a reason for hiding this comment

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

Why did a string value need a string type cast?

Copy link
Member Author

Choose a reason for hiding this comment

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

It doesn't, it's a cheap no-op. I suppose the original author simply wanted to keep the code short.

@BigMichi1
Copy link

For me this works now

@derrabus derrabus merged commit e4e0855 into doctrine:3.7.x Nov 19, 2023
11 checks passed
@derrabus derrabus deleted the bugfix/format-float branch November 19, 2023 06:55
derrabus added a commit that referenced this pull request Nov 19, 2023
* 3.8.x:
  Fix formatParameter() for floats (#1374)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError - migrations fail after upgrade to 3.7.0
4 participants