Skip to content

Commit ebf6636

Browse files
Update rector/rector requirement from ^0.16.0 to ^0.17.0 (#607)
* Update rector/rector requirement from ^0.16.0 to ^0.17.0 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](rectorphp/rector@0.16.0...0.17.0) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * Improve rector config --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sergei Predvoditelev <[email protected]>
1 parent d2d0028 commit ebf6636

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"maglnet/composer-require-checker": "^4.3",
4242
"phpbench/phpbench": "^1.2",
4343
"phpunit/phpunit": "^9.5",
44-
"rector/rector": "^0.16.0",
44+
"rector/rector": "^0.17.0",
4545
"roave/infection-static-analysis-plugin": "^1.25",
4646
"spatie/phpunit-watcher": "^1.23",
4747
"vimeo/psalm": "^4.30|^5.0",

rector.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
66
use Rector\Config\RectorConfig;
7+
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
8+
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
79
use Rector\Set\ValueObject\LevelSetList;
810

911
return static function (RectorConfig $rectorConfig): void {
@@ -19,4 +21,9 @@
1921
$rectorConfig->sets([
2022
LevelSetList::UP_TO_PHP_80,
2123
]);
24+
25+
$rectorConfig->skip([
26+
ClosureToArrowFunctionRector::class,
27+
AddDefaultValueForUndefinedVariableRector::class,
28+
]);
2229
};

0 commit comments

Comments
 (0)