

$parent must be always defined as $parent = $this->parent(...); is executed before any continue; or the end of cycle.
Nice catch, fix is easy. I already touched for loop code for the 0.9 release here https://github.com/phpstan/phpstan/commit/c848ed2728bd0bcb96c4c41d4c169118dec40ab4 so I will modify it once more.
Most helpful comment
Nice catch, fix is easy. I already touched for loop code for the 0.9 release here https://github.com/phpstan/phpstan/commit/c848ed2728bd0bcb96c4c41d4c169118dec40ab4 so I will modify it once more.