<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(): class-string<TNodeType>
|
# |
public
|
processNode(TNodeType $node, Scope $scope): list<IdentifierRuleError>
|
# |