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