protected function hasParamShadowGlobal($node)
{
foreach ($node->params as $param) {
// auto-global
if ($this->autoGlobals->has($param->name)) {
return true;
// $this
} elseif ($param->name == 'this' && $node instanceof Stmt\ClassMethod && !$node->isStatic()) {
return true;
}
}
return false;
}