wpsyntex / the-events-calendar-stubs
The Events Calendar function and class declaration stubs for static analysis.
Installs: 32 709
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Requires (Dev)
- php: ^7.3 || ^8.0
- composer/installers: ^2.2.0
- php-stubs/generator: ^0.8.4
- symfony/console: ^5.1 || ^6.0
- wpackagist-plugin/the-events-calendar: 6.7.0
README
This package provides stub declarations for The Events Calendar. These stubs can help plugin and theme developers leverage static analysis tools like PHPStan.
Stubs are generated directly from the source using php-stubs/generator.
Requirements
- PHP >=7.3
Installation
Require this package as a development dependency with Composer.
composer require --dev wpsyntex/the-events-calendar-stubs
Usage in PHPStan
Include the stubs in the PHPStan configuration file.
parameters: bootstrapFiles: - vendor/wpsyntex/the-events-calendar-stubs/the-events-calendar-stubs.php