Skip to content

Conversation

@arnaud-lb
Copy link
Contributor

@ondrejmirtes
Copy link
Member

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

class IntersectionType implements CompoundType
{

use NonRemoveableTypeTrait;
Copy link
Member

@ondrejmirtes ondrejmirtes Feb 4, 2022

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

Development

Successfully merging this pull request may close these issues.

Incorrect expected return type with union type and generic

2 participants