Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix int-mask-of to work well with operations on the int mask #2441

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

Open
staabm wants to merge 2 commits into phpstan:1.10.x
base: 1.10.x
Choose a base branch
Loading
from staabm:bug9384

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jun 8, 2023

@staabm staabm marked this pull request as ready for review June 8, 2023 11:36
Copy link
Collaborator

This pull request has been marked as ready for review.

}

if ($unionType->isInteger()->yes()) {
return $unionType;
Copy link
Member

@ondrejmirtes ondrejmirtes Jun 8, 2023

Choose a reason for hiding this comment

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

  1. Other bitwise operations need to be fixed as well
  2. Is this really correct? What if I do int<100, 150> | int<500, 1000>?

Copy link
Contributor

@jtojnar jtojnar Aug 30, 2024
edited
Loading

Choose a reason for hiding this comment

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

  1. It would be a nice to have or at least.
  2. For a simpler example, 1 ∈ int<1,1> and 2 ∈ int<2,2> but 1|2 = 3 ∉ (int<1,1> | int<2,2>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ondrejmirtes ondrejmirtes ondrejmirtes requested changes

+1 more reviewer

@jtojnar jtojnar jtojnar left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /