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 class const issue when using floats declared in future consts (fixes #7973). #7992

Merged
merged 1 commit into from May 21, 2022

Conversation

AndrolGenhald
Copy link
Collaborator

  • Calculate literal type for float arithmetic instead of only for int arithmetic
  • Fix copy/paste fail causing InvalidConstantAssignmentValue to be marked as fixable

 vimeo#7973).

 - Calculate literal type for float arithmetic instead of only for int arithmetic
 - Fix copy/paste fail causing InvalidConstantAssignmentValue to be marked as fixable
@AndrolGenhald AndrolGenhald added the release:fix The PR will be included in 'Fixes' section of the release notes label May 20, 2022
@AndrolGenhald
Copy link
Collaborator Author

I could have sworn there was a PHP warning for doing bitwise operations on floats, but apparently not... Do we want to add an issue for that to Psalm?

@orklah orklah merged commit b46fb14 into vimeo:master May 21, 2022
@orklah
Copy link
Collaborator

orklah commented May 21, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants