gravitywiz/phpstan-gwiz

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

Maintainers

Package info

github.com/gravitywiz/phpstan-gwiz

pkg:composer/gravitywiz/phpstan-gwiz

Statistics

Installs: 13 745

Dependents: 0

Suggesters: 0

Stars: 0

1.3.0 2024-10-07 18:36 UTC

This package is auto-updated.

Last update: 2026-03-01 00:49:38 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-gwiz" 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