phpstan-src
phpstan-src copied to clipboard
Ignore ApiInstanceofTypeRule in SimultaneousTypeTraverser
Needed for https://github.com/phpstan/phpstan-src/pull/4210
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.