mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
c56fdd2b7f
1b68ff48b8
[automated] Apply Coding Standard (#6524)
18 lines
715 B
PHP
18 lines
715 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202412;
|
|
|
|
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->rules([VarToPublicPropertyRector::class, ContinueToBreakInSwitchRector::class]);
|
|
$rectorConfig->ruleWithConfiguration(RemoveFuncCallArgRector::class, [
|
|
// see https://www.php.net/manual/en/function.ldap-first-attribute.php
|
|
new RemoveFuncCallArg('ldap_first_attribute', 2),
|
|
]);
|
|
};
|