gravitywiz/phpstan-gwiz

PHPStan extension for Gravity Forms and WooCommerce. Adds type aliases and various config changes.

1.3.0 2024-10-07 18:36 UTC

This package is auto-updated.

Last update: 2024-11-07 19:13:48 UTC


README

A PHPStan extension for Gravity Forms and WooCommerce. It adds type aliases for Gravity Forms and WooCommerce. Additionally, there are other various config changes to ignore errors, etc.

Usage

Add to your Composer project that is already using PHPStan. This package is compatible with phpstan/extension-installer so nothing outside of composer require --dev "gravitywiz/phpstan" is needed.

If you're not using phpstan/extension-installer, the files can be added to your phpstan.neon file manually by adding them to includes like so:

parameters:
    includes:
        - ./vendor/gravitywiz/phpstan/gravityforms.neon
        - ./vendor/gravitywiz/phpstan/woocommerce.neon