PHPStan rules bringing added Generator inspections, primarily targeting SOF3/await-generator projects. This extension introduces the following checks:
- Require generators be consumed (by a
foreach
,yield from $g
,...$g
, a function that accepts aGenerator
parameter, etc.) (finds unused generators).
This library is compatible with PHPStan's extension installer. Install it by running:
composer require --dev phpstan/extension-installer && \
composer require --dev muqsit/generator-phpstan-rules