We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02c04a commit 1d83ce2Copy full SHA for 1d83ce2
system/ThirdParty/Kint/Utils.php
@@ -118,7 +118,9 @@ public static function composerGetExtras(string $key = 'kint'): array
118
continue;
119
}
120
121
- foreach ($packages as $package) {
+ // 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) {
124
if (isset($package['extra'][$key]) && \is_array($package['extra'][$key])) {
125
$extras = \array_replace($extras, $package['extra'][$key]);
126
0 commit comments