Commit 251839a 1 parent 8fa89f5 commit 251839a Copy full SHA for 251839a
File tree 4 files changed +44
-46
lines changed
4 files changed +44
-46
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
"email" : " m.vogel@andersundsehr.com"
10
10
}
11
11
],
12
+ "support" : {
13
+ "source" : " https://github.com/andersundsehr/grumphp-config/tree/main/packages/rector-p" ,
14
+ "issues" : " https://github.com/andersundsehr/grumphp-config/issues"
15
+ },
12
16
"require" : {
13
- "php" : " ~8.1 .0 || ~8.2 .0 || ~8.3 .0" ,
14
- "rector/rector" : " ^1.2.2 " ,
17
+ "php" : " ~8.2 .0 || ~8.3 .0 || ~8.4 .0" ,
18
+ "rector/rector" : " ^2.0.9 " ,
15
19
"symfony/console" : " ^5.4 || ^6.4 || ^7.1"
16
20
},
17
21
"require-dev" : {
18
- "pluswerk/grumphp-config" : " ^7.0.4" ,
19
- "roave/security-advisories" : " dev-latest"
22
+ "andersundsehr/phpstan-git-files" : " @dev" ,
23
+ "pluswerk/grumphp-bom-task" : " @dev" ,
24
+ "pluswerk/grumphp-config" : " @dev" ,
25
+ "pluswerk/grumphp-xliff-task" : " @dev"
20
26
},
27
+ "repositories" : [
28
+ {
29
+ "type" : " path" ,
30
+ "url" : " ../../" ,
31
+ "options" : {
32
+ "symlink" : false ,
33
+ "reference" : " none"
34
+ }
35
+ },
36
+ {
37
+ "type" : " path" ,
38
+ "url" : " ../*" ,
39
+ "options" : {
40
+ "reference" : " none" ,
41
+ "relative" : false
42
+ }
43
+ }
44
+ ],
21
45
"autoload" : {
22
46
"psr-4" : {
23
47
"Andersundsehr\\ RectorP\\ " : " src/"
33
57
"phpstan/extension-installer" : true ,
34
58
"pluswerk/grumphp-config" : true
35
59
}
60
+ },
61
+ "extra" : {
62
+ "branch-alias" : {
63
+ "dev-main" : " 10.0-dev"
64
+ }
65
+ },
66
+ "scripts" : {
67
+ "post-update-cmd" : [
68
+ " composer bump -D" ,
69
+ " composer normalize" ,
70
+ " rm -rf vendor/pluswerk/grumphp-config/vendor vendor/pluswerk/grumphp-config/packages"
71
+ ]
36
72
}
37
73
}
Original file line number Diff line number Diff line change 7
7
use Stringable ;
8
8
use InvalidArgumentException ;
9
9
10
- final class ChunkConfig implements Stringable
10
+ final readonly class ChunkConfig implements Stringable
11
11
{
12
12
public function __construct (
13
- public readonly int $ chunkNumber = 1 ,
14
- public readonly int $ totalChunks = 1 ,
13
+ public int $ chunkNumber = 1 ,
14
+ public int $ totalChunks = 1 ,
15
15
) {
16
16
if ($ this ->totalChunks < 1 ) {
17
17
throw new InvalidArgumentException ('totalChunks must be greater than 0 give: ' . $ this );
Original file line number Diff line number Diff line change 10
10
use InvalidArgumentException ;
11
11
use Rector \Bootstrap \RectorConfigsResolver ;
12
12
use Rector \Config \RectorConfig ;
13
- use Rector \Configuration \ConfigInitializer ;
14
- use Rector \Configuration \ConfigurationFactory ;
15
13
use Rector \Configuration \Option ;
16
14
use Rector \Configuration \Parameter \SimpleParameterProvider ;
17
15
use Rector \DependencyInjection \RectorContainerFactory ;
18
16
use Rector \FileSystem \FilesFinder ;
19
- use Rector \StaticReflection \DynamicSourceLocatorDecorator ;
20
17
use Rector \ValueObject \Configuration ;
21
18
use Symfony \Component \Console \Command \Command ;
22
19
use Symfony \Component \Console \Helper \QuestionHelper ;
@@ -177,7 +174,7 @@ private function workOnFiles(array $chunkedFiles): void
177
174
{
178
175
$ timeCountMax = count ($ chunkedFiles );
179
176
$ timeIndex = 0 ;
180
- foreach (array_values ( $ chunkedFiles) as $ index => $ file ) {
177
+ foreach ($ chunkedFiles as $ index => $ file ) {
181
178
if ($ this ->cache ->isProcessed ($ file )) {
182
179
$ timeCountMax --;
183
180
continue ;
You can’t perform that action at this time.
0 commit comments