/**
  * @param \PhpParser\Node\Stmt\ClassMethod $node
  * @param \PHPStan\Analyser\Scope $scope
  * @return string[]
  */
 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));
 }
 /**
  * @param \PhpParser\Node\Expr\Closure $node
  * @param \PHPStan\Analyser\Scope $scope
  * @return string[]
  */
 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.');
 }