forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
php54.php
23 lines (17 loc) · 797 Bytes
/
php54.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
declare(strict_types=1);
use Rector\Php54\Rector\Break_\RemoveZeroBreakContinueRector;
use Rector\Php54\Rector\FuncCall\RemoveReferenceFromCallRector;
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(RenameFunctionRector::class)
->call('configure', [[
RenameFunctionRector::OLD_FUNCTION_TO_NEW_FUNCTION => [
'mysqli_param_count' => 'mysqli_stmt_param_count',
],
]]);
$services->set(RemoveReferenceFromCallRector::class);
$services->set(RemoveZeroBreakContinueRector::class);
};