Download the PHP package dave-liddament/phpstan-php-language-extensions without Composer
On this page you can find all versions of the php package dave-liddament/phpstan-php-language-extensions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dave-liddament/phpstan-php-language-extensions
More information about dave-liddament/phpstan-php-language-extensions
Files in dave-liddament/phpstan-php-language-extensions
Package phpstan-php-language-extensions
Short Description PHPStan rules to implement the language extensions provided by the php-language-extensions
License MIT
Informations about the package phpstan-php-language-extensions
PHPStan PHP Language Extensions (currently in BETA)
This is an extension for PHPStan for adding analysis for PHP Language Extensions.
Language feature added:
Installation
To make the attributes available for your codebase use:
To use install PHPStan extension use:
If you are using phpstan/extension-installer you're ready to go (but you might want to check out the configuration options)
Manual installation
If you don't want to use `phpstan/extension-installer`, include rules.neon in your project's PHPStan config:Configuring
Some attributes, e.g. #[package], might make testing difficult. It is possible to disable the checks for test code in one of two ways:
Exclude checks on class names ending with Test:
To exclude any checks from classes that where the name ends with Test add the following to the parameters section of your phpstan.neon file:
Exclude checks based on test namespace
To exclude any checks from classes that are in the test namespace (e.g. Acme\Test) add the following to the parameters section of your phpstan.neon file:
Contributing
See Contributing.
Demo project
See PHP language extensions PHPStan demo project.
All versions of phpstan-php-language-extensions with dependencies
phpstan/phpstan Version ^1.12.15 || ^2.0
dave-liddament/php-language-extensions Version ^0.8.0 || ^0.9.0 || ^0.10.0