Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

Closes phpstan/phpstan#13777

The issue is that UnionType::getObjectClassReflections was returning [] as soon as one of subtypes returns []...

'Learn more at https://phpstan.org/user-guide/discovering-symbols',
],
[
'PHPDoc tag @phpstan-require-extends contains unknown class IncompatibleRequireExtends\SomeClass.',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Funny to see that test was added with the bug (since SomeClass was existing)

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.

When one class mentioned by @phpstan-sealed is unknown all classes are incorrectly reputed unknown

1 participant