inspirecz/phpstan-ruleset

INSPIRE phpstan ruleset

Maintainers

Package info

github.com/InspireCZ/phpstan-ruleset

pkg:composer/inspirecz/phpstan-ruleset

Statistics

Installs: 16 771

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 5

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

This package is auto-updated.

Last update: 2026-02-24 14:40:43 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) ...