mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
ff4d797c73
[DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
15 lines
482 B
PHP
15 lines
482 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202210;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
use Rector\Set\ValueObject\SetList;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->sets([SetList::PHP_70, LevelSetList::UP_TO_PHP_56]);
|
|
// parameter must be defined after import, to override imported param version
|
|
$rectorConfig->phpVersion(PhpVersion::PHP_70);
|
|
};
|