Skip to content

Conversation

canvural
Copy link
Contributor

Hello 👋🏽

It is hard to describe how I came up with this patch. But I thought maybe migrating from instanceof *Type to method calls is a good enough reason to get it accepted 😅

There was one test failing. But I think this updated version is more correct.

@ondrejmirtes
Copy link
Member

What do you think about the issue-bot report? https://github.com/phpstan/phpstan-src/actions/runs/16970952217

@canvural
Copy link
Contributor Author

What do you think about the issue-bot report? https://github.com/phpstan/phpstan-src/actions/runs/16970952217

Yeah I saw it. But it looks it's the same case we have in the test file I've changed. The array key became more precise, which is correct IMO.

@ondrejmirtes ondrejmirtes merged commit fb0e78d into phpstan:2.1.x Aug 15, 2025
431 of 447 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@canvural canvural deleted the no-instanceof branch August 16, 2025 06:58
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