Skip to content

Be explicit about handled types rather then assuming implementations - #6303

Open
AJenbo wants to merge 1 commit into
phpstan:2.3.xfrom
AJenbo:ClassLike
Open

AJenbo wants to merge 1 commit into
phpstan:2.3.xfrom
AJenbo:ClassLike

Conversation

@AJenbo

@AJenbo AJenbo commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

This mostly addresses some noise from assumed implementation (which is safe atm)

@VincentLanglet VincentLanglet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The main issue seems to be NodeToReflection::__invoke ; shouldn't the type be updated on betterReflection instead ?

I think the right call could be to suggest adding @psalm-inheritors or @phpstan-sealed to ClassLike.

@AJenbo
AJenbo changed the base branch from 2.2.x to 2.3.x October 23, 2026 14:31
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.

2 participants