From fce5de54647fd29fd0cbba15cea67588df643fe5 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 14 Mar 2016 14:23:00 +0100 Subject: [PATCH] Correctly set nested dependency's package name when uninstalling --- system/src/Grav/Console/Gpm/UninstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Console/Gpm/UninstallCommand.php b/system/src/Grav/Console/Gpm/UninstallCommand.php index a22d2c4d2..5412d16fa 100644 --- a/system/src/Grav/Console/Gpm/UninstallCommand.php +++ b/system/src/Grav/Console/Gpm/UninstallCommand.php @@ -177,7 +177,7 @@ class UninstallCommand extends ConsoleCommand foreach($package->dependencies as $dependency) { if (is_array($dependency)) { - $dependency = array_keys($dependency)[0]; + $dependency = $dependency['name']; } $dependencyPackage = $this->gpm->findPackage($dependency);