Skip to content

Commit cda3bef

Browse files
committed
Fix Rector CI
1 parent 3dd8a7b commit cda3bef

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/rector.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
on:
2-
pull_request:
2+
pull_request_target:
33
paths-ignore:
44
- 'docs/**'
55
- 'README.md'
@@ -17,6 +17,7 @@ jobs:
1717
secrets:
1818
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
1919
with:
20+
repository: ${{ github.event.pull_request.head.repo.full_name }}
2021
os: >-
2122
['ubuntu-latest']
2223
php: >-

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"maglnet/composer-require-checker": "^4.7",
5050
"phpbench/phpbench": "^1.3",
5151
"phpunit/phpunit": "^10.5",
52-
"rector/rector": "^1.0.0",
52+
"rector/rector": "^1.2",
5353
"roave/infection-static-analysis-plugin": "^1.34",
5454
"spatie/phpunit-watcher": "^1.23",
5555
"vimeo/psalm": "^5.20",

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\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
87
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
98
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
109
use Rector\Set\ValueObject\LevelSetList;
@@ -25,7 +24,6 @@
2524

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

0 commit comments

Comments
 (0)