inspirecz/phpstan-ruleset

INSPIRE phpstan ruleset

Installs: 15 986

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 4

pkg:composer/inspirecz/phpstan-ruleset

v3.1.1 2025-12-24 14:20 UTC

This package is auto-updated.

Last update: 2025-12-24 14:21:48 UTC


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. Rule error identifier unaryNegation.nowAllowed.

 if (!$var) ...
👍 if (false === $var) ...