| @@ -21,4 +21,12 @@ | ||
| 21 | 21 | |
| 22 | 22 | if (!defined('AATXT_LANGUAGES_RELATIVE_PATH')) { |
| 23 | 23 | define('AATXT_LANGUAGES_RELATIVE_PATH', 'auto-alt-text/languages/'); |
| 24 | 24 | } |
| 25 | + | |
| 26 | +// Stub for the WP-CLI base class, not included in the WordPress stubs, | |
| 27 | +// so PHPStan can analyze src/App/CLI/AutoAltTextCommand.php. | |
| 28 | +if (!class_exists('WP_CLI_Command')) { | |
| 29 | + class WP_CLI_Command | |
| 30 | + { | |
| 31 | + } | |
| 32 | +} | |