<TNodeType is Node>This is the interface custom rules implement. To register it in the configuration file
use the phpstan.rules.rule service tag:
services:
-
class: App\MyRule
tags:
- phpstan.rules.rule
Learn more: https://phpstan.org/developing-extensions/rules
| Methods | ||
|---|---|---|
public
|
getNodeType(): string
|
# |
public
|
processNode(TNodeType $node, Scope $scope): (string|RuleError)[]
|
# |