/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php56/Rector/FuncCall
NameSizeModeActions
PowToExpRector.php14590644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php56/Rector/FuncCall/PowToExpRector.php (1459B)
> */ 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; } }