mralaminahamed / woocommerce-subscriptions-stubs
WooCommerce Subscriptons function and class declaration stubs for static analysis.
dev-main
2024-05-14 13:43 UTC
Requires
- php-stubs/woocommerce-stubs: dev-master
- php-stubs/wordpress-stubs: ^5.3 || ^6.0
Requires (Dev)
- php: >=7.1
- php-stubs/generator: ^0.8.0
- phpstan/phpstan: ^1.10
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
This package is auto-updated.
Last update: 2024-12-14 15:19:32 UTC
README
These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like PHPStan.
Requirements
- PHP >=7.1
Installation
Require this package as a development dependency with Composer.
composer require --dev mralaminahamed/mmerce-subscriptions-stubs
Alternatively you may download mmerce-subscriptions-stubs.php
directly.
Usage in PHPStan
Include stubs in PHPStan configuration file.
parameters: bootstrapFiles: - vendor/mralaminahamed/mmerce-subscriptions-stubs/mmerce-subscriptions-constants-stubs.php - vendor/mralaminahamed/mmerce-subscriptions-stubs/mmerce-subscriptions-stubs.php