PHPStan\Rules\Functions\ExistingClassesInClosureTypehintsRule::processNode PHP Method

processNode() public method

public processNode ( PhpParser\Node $node, Scope $scope ) : array
$node PhpParser\Node
$scope PHPStan\Analyser\Scope
return array
    public function processNode(Node $node, Scope $scope) : array
    {
        return $this->check->checkFunction($node, $scope, 'Parameter $%s of anonymous function has invalid typehint type %s.', 'Return typehint of anonymous function has invalid type %s.');
    }
ExistingClassesInClosureTypehintsRule