Changes pow(val, val2) to ** (exp) parameter
-pow(1, 2);
+1**2;
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php56\Rector\FuncCall\PowToExpRector;
return RectorConfig::configure()
->withRules([
PowToExpRector::class,
]);