analyse/types/yield-from-non-iterable
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/yield-from-non-iterable" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
YieldFromTypeRule(phpstan-classes)YieldFromNonIterable(mago-analyzer)generator.nonIterable(phpstan)generator.sendType(phpstan)