Bug report
When a generator method uses yield from rather than yield, it looks like it is not identified as a generator. The analyser complains about the usage of return; which does not return an iterable.
Code snippet that reproduces the problem
https://phpstan.org/r/d23f70ca-1525-4ba6-947c-f55187988a87
Expected output
No issue reported for the return; statement