From 656c23a89175b6b7146e31327ab0798f2e2af35a Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 31 Jul 2015 16:01:52 +0200 Subject: [PATCH] Correctly instantiate the Inflector $this->grav is not what we expect here. Got a fatal error on `$ bin/gpm` execution --- system/src/Grav/Common/GPM/GPM.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/src/Grav/Common/GPM/GPM.php b/system/src/Grav/Common/GPM/GPM.php index 049f0ec8c..1118b2955 100644 --- a/system/src/Grav/Common/GPM/GPM.php +++ b/system/src/Grav/Common/GPM/GPM.php @@ -349,8 +349,7 @@ class GPM extends Iterator public function findPackages($searches = []) { $packages = ['total' => 0, 'not_found' => []]; - $inflector = $this->grav['inflector']; - + $inflector = new Inflector(); foreach ($searches as $search) { $repository = '';