phpstan-wordpress
phpstan-wordpress copied to clipboard
PHPStan 1.12.1 requireFile new rule
Following PHPStan update 1.12.1, there is a new rule and error showing up when running it (with bleeding edge):
Path in require_once() "1wp-admin/includes/plugin-install.php" is not a file or it does not exist.
The usage in our code looks like so:
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
Does this new rule require an update of your extension, or would it just be a configuration change to do on our side?