wpsyntex / polylang-phpstan
PHPStan 的 Polylang 扩展
v1.2
2024-06-24 14:40 UTC
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-09-11 15:30:59 UTC
README
本软件包提供了 PHPStan 扩展,用于 Polylang 和 Polylang Pro。它应与 Polylang Stubs 一起使用。
要求
- PHP >=7.1
安装
使用 Composer 将此软件包作为开发依赖项要求。
composer require --dev wpsyntex/polylang-phpstan composer require --dev wpsyntex/polylang-stubs
配置
在 PHPStan 配置文件中包含扩展和存根。
includes: - vendor/wpsyntex/polylang-phpstan/extension.neon parameters: bootstrapFiles: - vendor/wpsyntex/polylang-stubs/polylang-stubs.php