Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 845 Bytes

File metadata and controls

24 lines (17 loc) · 845 Bytes

Flow PHP - PHPStan Types Bridge

PHPStan extension for flow-php/types. It teaches PHPStan the precise return type of the Flow\Types\DSL\type_structure() function so that structure shapes are narrowed for autocompletion and static analysis.

Installation

composer require --dev flow-php/phpstan-types-bridge

If you use phpstan/extension-installer the extension is registered automatically. Otherwise include it manually in your phpstan.neon:

includes:
    - vendor/flow-php/phpstan-types-bridge/extension.neon

Documentation