This is the extension interface to implement if you want to ignore errors based on the node and scope.
To register it in the configuration file use the phpstan.ignoreErrorExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.ignoreErrorExtension
Learn more: https://phpstan.org/developing-extensions/ignore-error-extensions
Methods | ||
---|---|---|
public
|
shouldIgnore(Error $error, Node $node, Scope $scope): bool
|
# |