inspirecz / phpstan-ruleset
INSPIRE phpstan ruleset
Installs: 13 772
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
Requires
README
Set of PHPStan rules used by INSPIRE CZ developers.
v1, v3
Branches v1
and v3
is for Webspire 7 projects (v3
is for PHPStan 2.*).
Where is v2?
The v2 branch was originally created for Webspire 8–specific projects. Since Webspire 8 is no longer in active development and the branch has gone unmaintained, it has been deleted.
Rules
DisableUnaryNegationOperatorRule
This rules prevents developers from using unary negation operator.
❌ if (!$var) ...
👍 if (false === $var) ...