Skip to content

Commit 1d83ce2

Browse files
committed
chore: update Kint to 5.0.3
1 parent f02c04a commit 1d83ce2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)