You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Bug report
When a generator method uses
yield from
rather thanyield
, it looks like it is not identified as a generator. The analyser complains about the usage ofreturn;
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;
statementThe text was updated successfully, but these errors were encountered: