From e94dc7e840aca8dc633075fc29c0538e9e533335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elliot=20Morales=20Sol=C3=A9?= Date: Mon, 28 Sep 2015 16:34:30 +0200 Subject: [PATCH] Corrected Strict errors on Service/Abstract --- Cpanel/PublicAPI.php | 2 +- Cpanel/Service/Abstract.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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; }