Skip to content

Forminator function and class declaration stubs for static analysis.

License

Notifications You must be signed in to change notification settings

mralaminahamed/phpstan-forminator-stubs

Repository files navigation

Fluent Forms Stubs

Packagist stats Packagist Tweet Build Status

This package provides stub declarations for the Fluent Forms 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.

Requirements

  • PHP >=7.1

Installation

Require this package as a development dependency with Composer.

composer require --dev mralaminahamed/forminator-stubs

Alternatively you may download forminator-stubs.php directly.

Usage in PHPStan

Include stubs in PHPStan configuration file.

parameters:
    bootstrapFiles:
        - vendor/mralaminahamed/forminator-stubs/forminator-constants-stubs.php
        - vendor/mralaminahamed/forminator-stubs/forminator-stubs.php

About

Forminator function and class declaration stubs for static analysis.

Topics

Resources

License

Stars

Watchers

Forks