<TNodeType is Node>extends |
Rule<TNodeType> |
|---|
A rule interested in several node classes whose only common ancestor is a broad one - Expr for BinaryOp and AssignOp, Node for Stmt and PropertyHook. getNodeType() stays that ancestor, which is what processNode() is typed against; the registry dispatches only the classes listed here, so the rule is not called for every other node of the ancestor just to reject it.
| Methods | ||
|---|---|---|
public
|
getNodeTypes(): non-empty-list<class-string<TNodeType>>
|
# |
| Methods inherited from PHPStan\Rules\Rule |
|---|
getNodeType(), processNode() |