> */ public function getNodeTypes() : array { return [FuncCall::class]; } /** * @param FuncCall $node */ public function refactor(Node $node) : ?Node { if (!$this->isName($node, 'pow')) { return null; } if ($node->isFirstClassCallable()) { return null; } $firstExpr = $node->getArgs()[0]->value; $secondExpr = $node->getArgs()[1]->value; return new Pow($firstExpr, $secondExpr); } public function provideMinPhpVersion() : int { return PhpVersionFeature::EXP_OPERATOR; } }