> > Overall, I see the change of reported `ReflectionMethod#getReturnType()` > as non-problematic, and tooling around reflection would continue working as > expected, while adding new API requires: >
I do think it would be problematic, and a new API is a must (either the one Nikita asked about or the current one). Let's consider a reflection-based static analyser: in PHP 8.1, it would report the incompatible user-land return types as a very serious issue all of a sudden, while in fact it's not the case yet. (now I see that Nikita answered the same) Máté >