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 e00f2b8 commit 2713cd3Copy full SHA for 2713cd3
agent/lib_composer.c
@@ -140,7 +140,7 @@ static void nr_execute_handle_autoload_composer_get_packages_information(
140
" $packages = array();"
141
" foreach (\\Composer\\InstalledVersions::getAllRawData() as $installed) { "
142
" foreach ($installed['versions'] as $packageName => $packageData) {"
143
- " if ($packageName == @$root_package['name']) {"
+ " if (is_array($root_package) && array_key_exists('name', $root_package) && $packageName == $root_package['name']) {"
144
" continue;"
145
" }"
146
" if (isset($packageData['pretty_version'])) {"
0 commit comments