mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
7ba32aac1f
e12c73eb33
[psr-4] Move tests to main namespace, as part of /src and /packages merge - step 2 (#5407)
19 lines
737 B
PHP
19 lines
737 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202401;
|
|
|
|
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 (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rule(VarToPublicPropertyRector::class);
|
|
$rectorConfig->rule(ContinueToBreakInSwitchRector::class);
|
|
$rectorConfig->ruleWithConfiguration(RemoveFuncCallArgRector::class, [
|
|
// see https://www.php.net/manual/en/function.ldap-first-attribute.php
|
|
new RemoveFuncCallArg('ldap_first_attribute', 2),
|
|
]);
|
|
};
|