diff --git a/src/Acquia/Rest/ServiceManager.php b/src/Acquia/Rest/ServiceManager.php index 5e65b66..9da4f3c 100644 --- a/src/Acquia/Rest/ServiceManager.php +++ b/src/Acquia/Rest/ServiceManager.php @@ -218,7 +218,11 @@ public function setClient($group, $name, Client $client) * @return \Guzzle\Service\Client */ public function getClient($group, $name) - { + { + // when used with https://github.com/acquia/acquia-search-governor-php + // this isset fails, unless the private storage property of the + // ArrayObject $this has previously been accessed. I don't know why this works but it does. + $foo = $this[$group]; return isset($this[$group][$name]) ? $this[$group][$name] : null; }