2020-07-18 16:57:24 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2024-03-01 20:02:28 +00:00
|
|
|
namespace RectorPrefix202403;
|
2020-07-18 16:57:24 +00:00
|
|
|
|
2024-02-08 04:24:11 +00:00
|
|
|
use Rector\Config\Level\TypeDeclarationLevel;
|
2022-06-06 17:12:56 +00:00
|
|
|
use Rector\Config\RectorConfig;
|
2022-06-07 08:22:29 +00:00
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
2024-02-08 04:24:11 +00:00
|
|
|
// the rule order matters, as its used in withTypeCoverageLevel() method
|
|
|
|
// place the safest rules first, follow by more complex ones
|
|
|
|
$rectorConfig->rules(TypeDeclarationLevel::RULES);
|
2020-07-18 16:57:24 +00:00
|
|
|
};
|