wpsyntex/polylang-wc-stubs

Polylang WooCommerce function and class declaration stubs for static analysis.

1.6.1 2021-11-27 13:39 UTC

This package is auto-updated.

Last update: 2024-11-19 11:35:42 UTC


README

This package provides stub declarations for Polylang for WooCommerce. These stubs can help plugin and theme developers leverage static analysis tools like PHPStan.

Stubs are generated directly from the source using giacocorsiglia/stubs-generator.

Requirements

  • PHP >=7.1

Installation

Require this package as a development dependency with Composer.

composer require --dev wpsyntex/polylang-wc-stubs

Usage in PHPStan

Include the stubs in the PHPStan configuration file.

parameters:
  bootstrapFiles:
    - vendor/wpsyntex/polylang-wc-stubs/polylang-wc-stubs.php