wpsyntex / polylang-phpstan
Polylang extension for PHPStan
Installs: 33 124
Dependents: 4
Suggesters: 1
Security: 0
Stars: 3
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- szepeviktor/phpstan-wordpress: ^1.0
- wpsyntex/polylang-stubs: dev-master
Requires (Dev)
- phpunit/phpunit: ^7 || ^9
This package is auto-updated.
Last update: 2024-12-06 09:34:02 UTC
README
This package provides a PHPStan extension for Polylang and Polylang Pro. It's should be used in combination with Polylang Stubs.
Requirements
- PHP >=7.1
Installation
Require this package as a development dependency with Composer.
composer require --dev wpsyntex/polylang-phpstan composer require --dev wpsyntex/polylang-stubs
Configuration
Include the extension and stubs in the PHPStan configuration file.
includes: - vendor/wpsyntex/polylang-phpstan/extension.neon parameters: bootstrapFiles: - vendor/wpsyntex/polylang-stubs/polylang-stubs.php