mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 18:54:39 +01:00
25 lines
1010 B
PHP
25 lines
1010 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
|
|
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
|
|
use Rector\Removing\Rector\FuncCall\RemoveFuncCallArgRector;
|
|
use Rector\Removing\ValueObject\RemoveFuncCallArg;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(VarToPublicPropertyRector::class);
|
|
$services->set(ContinueToBreakInSwitchRector::class);
|
|
|
|
$services->set(RemoveFuncCallArgRector::class)
|
|
->call('configure', [[
|
|
RemoveFuncCallArgRector::REMOVED_FUNCTION_ARGUMENTS => ValueObjectInliner::inline([
|
|
// see https://www.php.net/manual/en/function.ldap-first-attribute.php
|
|
new RemoveFuncCallArg('ldap_first_attribute', 2),
|
|
]),
|
|
]]);
|
|
};
|