Download the PHP package svnldwg/phpstan-rules without Composer
On this page you can find all versions of the php package svnldwg/phpstan-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download svnldwg/phpstan-rules
More information about svnldwg/phpstan-rules
Files in svnldwg/phpstan-rules
Package phpstan-rules
Short Description Provides additional rules for phpstan/phpstan
License MIT
Homepage https://github.com/svnldwg/phpstan-rules
Informations about the package phpstan-rules
phpstan-rules
Provides additional rules for phpstan/phpstan
.
This package is still in development, please report any issues or bugs.
Installation
Run
Usage
The rules provided are included in rules.neon
.
When you are using phpstan/extension-installer
, rules.neon
will be automatically included.
Otherwise you need to include rules.neon
in your phpstan.neon
:
Rules
This package provides the following rules for use with phpstan/phpstan
:
ImmutableObjectRule
This rule reports an error when a class or class property tagged as immutable is mutable. This can be used for example to ensure that value objects are always immutable.
:bulb: Classes or properties can be tagged as immutable by adding the annotation @psalm-immutable
or @immutable
to the phpdoc.
:bulb: The immutability rule also asserts that immutable properties are not mutated in child classes
License
This package is licensed using the MIT License.
Please have a look at LICENSE.md
.
All versions of phpstan-rules with dependencies
ext-mbstring Version *
nikic/php-parser Version ^4.2.3
phpstan/phpstan Version >=0.11