mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-08 12:20:52 +00:00
6981c70c9a
9ed8c21b12
[DeadCode] Remove findFirstPrevious() usage on UselessIfCondBeforeForeachDetector (#4388)
15 lines
482 B
PHP
15 lines
482 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202307;
|
|
|
|
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_72, LevelSetList::UP_TO_PHP_71]);
|
|
// parameter must be defined after import, to override imported param version
|
|
$rectorConfig->phpVersion(PhpVersion::PHP_72);
|
|
};
|