The readme says to include wp-cli-stubs.php (and the other files) under scanFiles. I have this:
parameters:
scanFiles:
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
- vendor/php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php
- vendor/php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php
But I have a class that extends WP_CLI_Command, and when analyzing that file I get:
Class WP_CLI_Command not found.
Only if I include it under bootstrapFiles does it work.
I'm not sure whether to report this on phpstan or here. Or if just something has changed not reflected in the documentation.
The readme says to include wp-cli-stubs.php (and the other files) under scanFiles. I have this:
But I have a class that extends WP_CLI_Command, and when analyzing that file I get:
Class WP_CLI_Command not found.Only if I include it under bootstrapFiles does it work.
I'm not sure whether to report this on phpstan or here. Or if just something has changed not reflected in the documentation.