Skip to content

Commit f16f177

Browse files
Update rector, improve it config and apply suggestions (#89)
Co-authored-by: Sergei Predvoditelev <[email protected]>
1 parent 56df5a7 commit f16f177

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.github/workflows/rector.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ name: rector
1414
jobs:
1515
rector:
1616
uses: yiisoft/actions/.github/workflows/rector.yml@master
17+
secrets:
18+
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
1719
with:
1820
os: >-
1921
['ubuntu-latest']

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"httpsoft/http-message": "^1.0.9",
4242
"maglnet/composer-require-checker": "^4.4",
4343
"phpunit/phpunit": "^9.5",
44-
"rector/rector": "^0.15.10",
44+
"rector/rector": "^0.17.12",
4545
"roave/infection-static-analysis-plugin": "^1.16",
4646
"spatie/phpunit-watcher": "^1.23",
4747
"vimeo/psalm": "^4.30|^5.6",

rector.php

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

55
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
66
use Rector\Config\RectorConfig;
7-
use Rector\Php70\Rector\FuncCall\NonVariableToVariableOnFunctionCallRector;
87
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
98
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
109
use Rector\Set\ValueObject\LevelSetList;
@@ -25,7 +24,6 @@
2524

2625
$rectorConfig->skip([
2726
ClosureToArrowFunctionRector::class,
28-
NonVariableToVariableOnFunctionCallRector::class,
2927
RemoveExtraParametersRector::class,
3028
]);
3129
};

src/Middleware/ExceptionResponder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ final class ExceptionResponder implements MiddlewareInterface
5151
* ```
5252
*
5353
* @param callable[]|int[] $exceptionMap A callable that must return a `ResponseInterface` or response status code.
54-
* @param ResponseFactoryInterface $responseFactory
55-
* @param Injector $injector
5654
*/
5755
public function __construct(
5856
private array $exceptionMap,

0 commit comments

Comments
 (0)