Common PHPStan configuration for WP Desk
This meta-package contains PHPStan configuration for WP Desk projects. This includes dependent extensions like szepeviktor/phpstan-wordpress
, and additional, default configuration like inclusion of WooCommerce stubs.
Installation
composer require wpdesk/phpstan-rules
Usage
After installation, you can simply use PHPStan in your project without the need to further configuration. Nevertheless, as project grows, it's worth to add even the basic one.
To run PHPStan, simply execute the following command ( is only required if not present in configuration file):
vendor/bin/phpstan analyse <path>