File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 13
13
"psr/log" : " ^1.1"
14
14
},
15
15
"require-dev" : {
16
- "kint-php/kint" : " ^5.0.1 " ,
16
+ "kint-php/kint" : " ^5.0.3 " ,
17
17
"codeigniter/coding-standard" : " ^1.5" ,
18
18
"fakerphp/faker" : " ^1.9" ,
19
19
"friendsofphp/php-cs-fixer" : " 3.13.0" ,
Original file line number Diff line number Diff line change 13
13
"psr/log" : " ^1.1"
14
14
},
15
15
"require-dev" : {
16
- "kint-php/kint" : " ^5.0.1 " ,
16
+ "kint-php/kint" : " ^5.0.3 " ,
17
17
"codeigniter/coding-standard" : " ^1.5" ,
18
18
"fakerphp/faker" : " ^1.9" ,
19
19
"friendsofphp/php-cs-fixer" : " 3.13.0" ,
Original file line number Diff line number Diff line change @@ -118,7 +118,9 @@ public static function composerGetExtras(string $key = 'kint'): array
118
118
continue ;
119
119
}
120
120
121
- foreach ($ packages as $ package ) {
121
+ // Composer 2.0 Compatibility: packages are now wrapped into a "packages" top level key instead of the whole file being the package array
122
+ // @see https://getcomposer.org/upgrade/UPGRADE-2.0.md
123
+ foreach ($ packages ['packages ' ] ?? $ packages as $ package ) {
122
124
if (isset ($ package ['extra ' ][$ key ]) && \is_array ($ package ['extra ' ][$ key ])) {
123
125
$ extras = \array_replace ($ extras , $ package ['extra ' ][$ key ]);
124
126
}
You can’t perform that action at this time.
0 commit comments