phpstan-wordpress icon indicating copy to clipboard operation
phpstan-wordpress copied to clipboard

PHPStan 1.12.1 requireFile new rule

Open remyperona opened this issue 5 months ago • 8 comments

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?

remyperona avatar Sep 04 '24 15:09 remyperona