antlr / antlr-php-runtime-phpstan
ANTLR4 PHP Runtime extensions for PHPStan.
Installs: 5 478
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 5
Forks: 3
Open Issues: 0
Type:phpstan-extension
Requires
- php: ^7.2 || ^8.0
- phpstan/phpstan: ^1.2
Requires (Dev)
- antlr/antlr4-php-runtime: ^0.5
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^7.0
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-10-20 22:20:28 UTC
README
Static analysis for ANTLR4 PHP Runtime.
Features
This extension provides correct return type for context's sub-rule getters.
Install
Using Composer:
composer require --dev antlr/antlr-php-runtime-phpstan
Register Plugin
If you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer
, include extension.neon in your project's PHPStan config:
includes: - vendor/antlr/antlr-php-runtime-phpstan/extension.neon
Testing
To run all unit tests, use the locally installed PHPUnit:
./vendor/bin/phpunit