diff --git a/Cpanel/PublicAPI.php b/Cpanel/PublicAPI.php index a752662..ee9c61c 100644 --- a/Cpanel/PublicAPI.php +++ b/Cpanel/PublicAPI.php @@ -76,7 +76,7 @@ class Cpanel_PublicAPI extends Cpanel_Core_Object * The class is a Singleton. The constructor, however is public due to * inheritance from Cpanel_Core_Object. * - * @param arrays $optsArray Option configuration data + * @param array $optsArray Option configuration data * * @return Cpanel_PublicAPI * @throws Exception If instantiated directly. {@link getInstance()} diff --git a/Cpanel/Service/Abstract.php b/Cpanel/Service/Abstract.php index c0f1efe..b18d658 100644 --- a/Cpanel/Service/Abstract.php +++ b/Cpanel/Service/Abstract.php @@ -515,7 +515,8 @@ protected function arrayType($arr) ); } ksort($arr); - $fkey = array_shift(array_keys($arr)); + $keys=array_keys($arr); + $fkey = array_shift($keys); if (is_int($fkey)) { return self::API1ARGS; }