free-chevereto/app/rector.php
2023-02-06 13:21:43 +00:00

22 lines
568 B
PHP

<?php
/*
* This file is part of Chevereto.
*
* (c) Rodolfo Berrios <rodolfo@chevereto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__
]);
$rectorConfig->sets([SetList::DEAD_CODE, SetList::PHP_80]);
$rectorConfig->phpVersion(PhpVersion::PHP_81);
};