mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
0ba8579821
[Fix] Make UnionTypesRector and ReturnAnnotationIncorrectNullableRector skip chaotic methods (#2067)
14 lines
488 B
PHP
14 lines
488 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20220413;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
use Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector;
|
|
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->phpVersion(\Rector\Core\ValueObject\PhpVersion::PHP_52);
|
|
$services = $rectorConfig->services();
|
|
$services->set(\Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector::class);
|
|
};
|