2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-06-08 05:54:40 +00:00
|
|
|
namespace RectorPrefix20220608;
|
2020-07-18 18:57:24 +02:00
|
|
|
|
2022-06-06 17:12:56 +00:00
|
|
|
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;
|
2022-06-07 08:22:29 +00:00
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
|
|
$rectorConfig->rule(VarToPublicPropertyRector::class);
|
|
|
|
$rectorConfig->rule(ContinueToBreakInSwitchRector::class);
|
|
|
|
$rectorConfig->ruleWithConfiguration(RemoveFuncCallArgRector::class, [
|
2021-05-09 20:15:43 +00:00
|
|
|
// see https://www.php.net/manual/en/function.ldap-first-attribute.php
|
2022-06-07 08:22:29 +00:00
|
|
|
new RemoveFuncCallArg('ldap_first_attribute', 2),
|
2021-11-30 13:55:08 +00:00
|
|
|
]);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|