wpsyntex/the-events-calendar-stubs

The Events Calendar function and class declaration stubs for static analysis.

6.7.0 2024-10-16 08:24 UTC

This package is auto-updated.

Last update: 2024-10-16 08:26:10 UTC


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