Skip to content

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
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

}

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

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

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

Labels

None yet

4 participants