stancer/php-stubs-woo-subscriptions

Woo Subscriptions function and class declaration stubs for static analysis.

v6.0.0 2024-03-26 18:04 UTC

This package is auto-updated.

Last update: 2024-04-26 17:20:46 UTC


README

This package provides stub declarations for the Woo Subscriptions plugin functions, classes and interfaces. These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like PHPStan.

The stubs are generated directly from the source using php-stubs/generator.

Installation

Require this package as a development dependency with Composer.

composer require --dev stancer/php-stubs-woo-subscriptions

Usage in PHPStan

Include stubs in PHPStan configuration file.

parameters:
  scanFiles:
    - vendor/stancer/php-stubs-woo-subscriptions/stubs.php