File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -143,3 +143,28 @@ jobs:
143
143
issue-number : ${{ github.event.pull_request.number }}
144
144
body-path : code_samples_usage.diff.md
145
145
edit-mode : replace
146
+
147
+ rector :
148
+ name : Run rector
149
+ runs-on : " ubuntu-22.04"
150
+ strategy :
151
+ matrix :
152
+ php :
153
+ - ' 8.3'
154
+ steps :
155
+ - uses : actions/checkout@v4
156
+
157
+ - name : Setup PHP Action
158
+ uses : shivammathur/setup-php@v2
159
+ with :
160
+ php-version : ${{ matrix.php }}
161
+ coverage : none
162
+ extensions : ' pdo_sqlite, gd'
163
+ tools : cs2pr
164
+
165
+ - uses : ramsey/composer-install@v3
166
+ with :
167
+ dependency-versions : highest
168
+
169
+ - name : Run rector
170
+ run : vendor/bin/rector process --dry-run --ansi
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * @copyright Copyright (C) Ibexa AS. All rights reserved.
5
+ * @license For full copyright and license information view LICENSE file distributed with this source code.
6
+ */
7
+ declare (strict_types=1 );
8
+
9
+ use Ibexa \Contracts \Rector \Sets \IbexaSetList ;
10
+ use Rector \Config \RectorConfig ;
11
+ use Rector \Symfony \Set \SymfonySetList ;
12
+
13
+ return RectorConfig::configure ()
14
+ ->withPaths ([
15
+ __DIR__ . '/code_samples ' ,
16
+ ])
17
+ ->withSets ([
18
+ IbexaSetList::IBEXA_50 ->value ,
19
+ SymfonySetList::SYMFONY_60 ,
20
+ SymfonySetList::SYMFONY_61 ,
21
+ SymfonySetList::SYMFONY_62 ,
22
+ SymfonySetList::SYMFONY_63 ,
23
+ SymfonySetList::SYMFONY_64 ,
24
+ SymfonySetList::SYMFONY_70 ,
25
+ SymfonySetList::SYMFONY_71 ,
26
+ SymfonySetList::SYMFONY_72 ,
27
+ ]);
You can’t perform that action at this time.
0 commit comments