Skip to content

Commit 770351f

Browse files
authored
Merge pull request #7218 from kenjis/update-kint-503
chore: update Kint to 5.0.3
2 parents f9d09b9 + 1450be7 commit 770351f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

admin/framework/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"psr/log": "^1.1"
1414
},
1515
"require-dev": {
16-
"kint-php/kint": "^5.0.1",
16+
"kint-php/kint": "^5.0.3",
1717
"codeigniter/coding-standard": "^1.5",
1818
"fakerphp/faker": "^1.9",
1919
"friendsofphp/php-cs-fixer": "3.13.0",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"psr/log": "^1.1"
1414
},
1515
"require-dev": {
16-
"kint-php/kint": "^5.0.1",
16+
"kint-php/kint": "^5.0.3",
1717
"codeigniter/coding-standard": "^1.5",
1818
"fakerphp/faker": "^1.9",
1919
"friendsofphp/php-cs-fixer": "3.13.0",

system/ThirdParty/Kint/Utils.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public static function composerGetExtras(string $key = 'kint'): array
118118
continue;
119119
}
120120

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) {
122124
if (isset($package['extra'][$key]) && \is_array($package['extra'][$key])) {
123125
$extras = \array_replace($extras, $package['extra'][$key]);
124126
}

0 commit comments

Comments
 (0)