mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
20 lines
897 B
PHP
20 lines
897 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20220417;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
|
|
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
|
|
use Rector\Removing\Rector\FuncCall\RemoveFuncCallArgRector;
|
|
use Rector\Removing\ValueObject\RemoveFuncCallArg;
|
|
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
|
$services = $rectorConfig->services();
|
|
$services->set(\Rector\Php52\Rector\Property\VarToPublicPropertyRector::class);
|
|
$services->set(\Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector::class);
|
|
$services->set(\Rector\Removing\Rector\FuncCall\RemoveFuncCallArgRector::class)->configure([
|
|
// see https://www.php.net/manual/en/function.ldap-first-attribute.php
|
|
new \Rector\Removing\ValueObject\RemoveFuncCallArg('ldap_first_attribute', 2),
|
|
]);
|
|
};
|