custom-rules

Installation
SKILL.md

PHPStan Custom Rules

When to use

  • The user needs to pick which PHP-Parser AST node type a custom PHPStan rule should target (method call, class, new expression, and so on).
  • The user wants to test a custom PHPStan rule with RuleTestCase and fixture files asserting the expected errors and lines.
  • The user wants to write a custom PHPStan rule that implements the Rule interface to enforce a project-specific convention.

When NOT to use

Installs
2
GitHub Stars
3
First Seen
Jul 3, 2026
custom-rules — anyorgname/php-skills