Skip to content

Commit 8a3ce78

Browse files
committed
composer require rector/rector --dev -W
1 parent 73f3269 commit 8a3ce78

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@
4848
"require-dev": {
4949
"pestphp/pest": "^1.0 | ^2.0",
5050
"friendsofphp/php-cs-fixer": "^3.64",
51-
"leafs/alchemy": "*"
51+
"leafs/alchemy": "*",
52+
"rector/rector": "^2.2"
5253
},
5354
"scripts": {
5455
"alchemy": "./vendor/bin/alchemy setup",
5556
"test": "./vendor/bin/alchemy setup --test",
5657
"lint": "./vendor/bin/alchemy setup --lint",
5758
"actions": "./vendor/bin/alchemy setup --actions"
5859
}
59-
}
60+
}

rector.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withDowngradeSets(false, false, false, false, false, true)
9+
->withFluentCallNewLine()
10+
->withImportNames(true, true, true, true)
11+
->withPaths([
12+
__DIR__ . '/src',
13+
__DIR__ . '/tests',
14+
])
15+
;

0 commit comments

Comments
 (0)