Skip to content

Commit

Permalink
Merge pull request #39 from stickeeuk/chore/deps
Browse files Browse the repository at this point in the history
chore(deps): unlock Rector dependency versions
  • Loading branch information
stickeeoliver authored Jan 2, 2024
2 parents 7c72309 + 494226b commit 01b657e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"type": "library",
"require": {
"php": "^8.1",
"rector/rector": "0.17.0",
"driftingly/rector-laravel": "0.21.0"
"rector/rector": "^0.18.13",
"driftingly/rector-laravel": "^0.26.2"
},
"license": "MIT",
"authors": [
Expand Down
4 changes: 0 additions & 4 deletions dist/rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@
]);

$rectorConfig->skip([
// \Rector\TypeDeclaration\Rector\FunctionLike\ReturnTypeDeclarationRector::class, // adds return types which may conflict with Laravel built-ins
\Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector::class, // adds return type to closures which may conflict with Laravel built-ins
\Rector\EarlyReturn\Rector\If_\ChangeOrIfReturnToEarlyReturnRector::class, // forces an early return which is soemtimes less easier to read
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class, // removes @param from docblocks
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector::class, // removes return from docblocks
\Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector::class, // changes $i++ to ++$i
\Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector::class, // changes "th{$is}" to sprintf('th%s', 'is')
\Rector\Php80\Rector\FunctionLike\MixedTypeRector::class, // removes docblocks
\Rector\Php80\Rector\FunctionLike\UnionTypesRector::class, // removes docblocks
]);

};

0 comments on commit 01b657e

Please sign in to comment.