From: Jan Schneider Date: Thu, 16 Dec 2010 23:14:46 +0000 (+0100) Subject: Fix typehints. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fa95315850ee2d8ccdd00b454fa5ebcaf2c660bf;p=horde.git Fix typehints. --- diff --git a/framework/Share/lib/Horde/Share/Base.php b/framework/Share/lib/Horde/Share/Base.php index fa29830f0..b62ec5f8a 100644 --- a/framework/Share/lib/Horde/Share/Base.php +++ b/framework/Share/lib/Horde/Share/Base.php @@ -330,7 +330,7 @@ abstract class Horde_Share_Base * * @return array The shares the user has access to. */ - public function listShares($userid, $params = array()) + public function listShares($userid, array $params = array()) { $params = array_merge(array('perm' => Horde_Perms::SHOW, 'attributes' => null, @@ -368,7 +368,7 @@ abstract class Horde_Share_Base * * @return array The shares the user has access to. */ - abstract protected function _listShares($userid, $params = array()); + abstract protected function _listShares($userid, array $params = array()); /** * Returns an array of all system shares. diff --git a/framework/Share/lib/Horde/Share/Kolab.php b/framework/Share/lib/Horde/Share/Kolab.php index 1205a7879..a430aba6b 100644 --- a/framework/Share/lib/Horde/Share/Kolab.php +++ b/framework/Share/lib/Horde/Share/Kolab.php @@ -174,7 +174,7 @@ class Horde_Share_Kolab extends Horde_Share_Base * * @return array The shares the user has access to. */ - protected function _listShares($userid, $params = array()) + protected function _listShares($userid, array $params = array()) { $key = serialize(array($this->_type, $userid, $params['perm'], $params['attributes'])); if ($this->_list === false) { diff --git a/framework/Share/lib/Horde/Share/Object.php b/framework/Share/lib/Horde/Share/Object.php index 4b71c2d0e..c9c11537c 100644 --- a/framework/Share/lib/Horde/Share/Object.php +++ b/framework/Share/lib/Horde/Share/Object.php @@ -35,7 +35,7 @@ abstract class Horde_Share_Object implements Serializable */ public function setShareOb($shareOb) { - if ($shareOb instanceof Horde_Share) { + if ($shareOb instanceof Horde_Share_Base) { $this->_shareOb = $shareOb; } else { $this->_shareCallback = $shareOb; diff --git a/framework/Share/lib/Horde/Share/Sql.php b/framework/Share/lib/Horde/Share/Sql.php index b7c534683..e57fe3115 100644 --- a/framework/Share/lib/Horde/Share/Sql.php +++ b/framework/Share/lib/Horde/Share/Sql.php @@ -478,7 +478,7 @@ class Horde_Share_Sql extends Horde_Share_Base * * @return array The shares the user has access to. */ - protected function _listShares($userid, $params = array()) + protected function _listShares($userid, array $params = array()) { }