PHPStan\Rules\Methods\ExistingClassesInTypehintsRule::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, sprintf('Parameter $%%s of method %s::%s() has invalid typehint type %%s.', $scope->getClass(), $node->name), sprintf('Return typehint of method %s::%s() has invalid type %%s.', $scope->getClass(), $node->name));
    }
ExistingClassesInTypehintsRule