Fix typehints.
authorJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 23:14:46 +0000 (00:14 +0100)
committerJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 23:17:12 +0000 (00:17 +0100)
framework/Share/lib/Horde/Share/Base.php
framework/Share/lib/Horde/Share/Kolab.php
framework/Share/lib/Horde/Share/Object.php
framework/Share/lib/Horde/Share/Sql.php

index fa29830..b62ec5f 100644 (file)
@@ -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.
index 1205a78..a430aba 100644 (file)
@@ -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) {
index 4b71c2d..c9c1153 100644 (file)
@@ -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;
index b7c5346..e57fe31 100644 (file)
@@ -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())
     {
     }