Search by

timmit / phpstan-framework-rules

timmit

PHPStan rules shared by aItem applications.

Package info

git.timmit.nl/timmit/phpstan-framework-rules

Type:phpstan-extension

pkg:composer/timmit/phpstan-framework-rules

Statistics

Installs: 25

Dependents: 0

Suggesters: 0

1.0.0 2026-10-01 12:03 UTC

This package is auto-updated.

Last update: 2026-10-01 12:07:22 UTC


README

PHPStan rules shared by applications on a aItem based framework, plus phpstan-strict-rules.

The rules match method names and the short class name (Functions, Groups). They do not mention Name\Space\Groups::save() is reported only when that class, or an ancestor with the same short name, has diffAndSave().

Install

composer require --dev timmit/phpstan-framework-rules

rules.neon includes phpstan-strict-rules. One include is enough:

includes:
    - vendor/timmit/phpstan-framework-rules/rules.neon

With phpstan/extension-installer the include is picked up from extra.phpstan.includes. Do not also include vendor/phpstan/phpstan-strict-rules/rules.neon; the rules would be registered twice.

NoDirectSaveOnGroupsRule stays quiet for a Groups class that has no diffAndSave(). Users and Login are separate classes and are not covered by this rule.