Skip to content

Commit 8df4b2c

Browse files
author
rotimi
committed
Now using rector 1.0.1+
1 parent 5d4626d commit 8df4b2c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require-dev": {
1717
"phpunit/phpunit": "^9.0",
1818
"php-coveralls/php-coveralls": "^2.0",
19-
"rector/rector": "^0.18.0",
19+
"rector/rector": "^1.0.0",
2020
"vimeo/psalm": "^5.4"
2121
},
2222
"autoload": {
@@ -28,11 +28,13 @@
2828
},
2929
"scripts": {
3030
"test": [
31-
"composer dump",
31+
"Composer\\Config::disableProcessTimeout",
3232
"vendor/bin/phpunit --coverage-text"
3333
],
34+
"rector-clear": "vendor/bin/rector --clear-cache",
3435
"rector": "vendor/bin/rector process src --dry-run -vvv",
35-
"psalm": "vendor/bin/psalm",
36+
"psalm-clear-cache": "vendor/bin/psalm --clear-global-cache && vendor/bin/psalm --clear-cache",
37+
"psalm": "composer psalm-clear-cache && vendor/bin/psalm --threads=1",
3638
"qa": "composer test && composer rector && composer psalm"
3739
}
3840
}

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class,
2828
//\Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector::class,
2929
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector::class,
30-
\Rector\Php71\Rector\FuncCall\CountOnNullRector::class,
3130
//\Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector::class,
3231
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class
3332
]);

0 commit comments

Comments
 (0)