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

Delegate most of TypeCombinator::remove() to Type::tryRemove() #994

Merged
merged 1 commit into from Feb 4, 2022

Conversation

arnaud-lb
Copy link
Contributor

@ondrejmirtes
Copy link
Member

Looks like you didn't commit the NonRemoveableTypeTrait trait :)

@@ -34,6 +35,8 @@
class IntersectionType implements CompoundType
{

use NonRemoveableTypeTrait;
Copy link
Member

Choose a reason for hiding this comment

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

As I see this trait being used by a lot of types, I'm pretty sure we could actually make them support type-removing in some scenarios :) But we can leave it for later.

@ondrejmirtes
Copy link
Member

The failures are from a faulty extension in phpstan-symfony, I'll look into it after merging.

Thank you!

@ondrejmirtes ondrejmirtes merged commit d5e6df7 into phpstan:master Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants