mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
071d7cb788
c35cc97d38
[DX] Add phpVersion() method to RectorConfig + make use of new config class in test configs (#2065)
14 lines
387 B
PHP
14 lines
387 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
|
|
use Rector\Config\RectorConfig;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([__DIR__ . '/src/']);
|
|
|
|
$services = $rectorConfig->services();
|
|
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
|
|
};
|