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

WordPress extensions for PHPStan ⛏️

Results 35 phpstan-wordpress issues
Sort by recently updated
recently updated
newest added

We have a plugin file with some constants loaded in as a bootstrap file: ``` parameters: bootstrapFiles: - wp-content/plugins/my-plugin/my-plugin.php paths: - wp-content/plugins/my-plugin ``` ```php // Exit if accessed directly. if...

Using PHP 7.4 I am getting the following error when running phpstan with the phpstan-wordpress extension enabled: `ParseError thrown in vendor/php-stubs/wordpress-stubs/wordpress-stubs.php on line 7343 while loading bootstrap file vendor/php-stubs/wordpress-stubs/wordpress-stubs.php: syntax...

https://github.com/fairpm/fair-plugin/pull/32#issuecomment-2955851936 How to run PHPStan on a foreign repo?

See https://github.com/php-stubs/wordpress-stubs/pull/381

The return value of [`wp_hash_password()`](https://developer.wordpress.org/reference/functions/wp_hash_password/) is determined by one of the following: - `\PasswordHash::HashPassword()` – always returns a `non-falsy-string`. - `password_hash()` – returns a `non-falsy-string` for valid algorithms. For invalid...