phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Ignore ApiInstanceofTypeRule in SimultaneousTypeTraverser

Open VincentLanglet opened this issue 4 months ago • 1 comments

Needed for https://github.com/phpstan/phpstan-src/pull/4210

VincentLanglet avatar Oct 18 '25 14:10 VincentLanglet

I'm not sure about this one yet. It remains to be seen what's the right implementation for a callback in SimultaneousTypeTraverser. Because the implementation of traverseSimultaneously in IntersectionType is not obvious, it might mean that doing instanceof *Type in SimultaneousTypeTraverser callback is really not correct.

I'll keep this open, we'll see.

ondrejmirtes avatar Dec 06 '25 11:12 ondrejmirtes