PHPStan 2.1.35 cause error on rector-downgrade-php

Bug report

After upgrade to PHPStan 2.1.35, rector-downgrade-php got error, it works ok on PHPStan 2.1.34. I suspect it is due to change on PHPStan\Analyser\NodeScopeResolver:

or this commits

phpstan/phpstan-src@ca7ab77
phpstan/phpstan-src@e7eb961
phpstan/phpstan-src@47c1045

or other related PR to the PHPStan\Analyser\NodeScopeResolver class.

see comparison of Before vs After Bump to PHPStan 2.1.35

Code snippet that reproduces the problem

No response

Expected output

PHPUnit on rector-downgrade-php should keep working.

Did PHPStan help you today? Did it make you happy in any way?

No response