> */ public function getNodeTypes() : array { return [FuncCall::class]; } /** * @param FuncCall $node */ public function refactor(Node $node) : ?FuncCall { if (!$this->isName($node, 'restore_include_path')) { return null; } if ($node->isFirstClassCallable()) { return null; } $node->name = new Name('ini_restore'); $node->args[0] = new Arg(new String_('include_path')); return $node; } }