Be more relaxed on the params argument.
authorJan Schneider <jan@horde.org>
Thu, 29 Oct 2009 14:38:25 +0000 (15:38 +0100)
committerJan Schneider <jan@horde.org>
Thu, 29 Oct 2009 14:38:25 +0000 (15:38 +0100)
framework/Notification/lib/Horde/Notification/Handler.php
framework/Notification/lib/Horde/Notification/Handler/Alarm.php
framework/Notification/lib/Horde/Notification/Handler/Base.php
framework/Notification/lib/Horde/Notification/Handler/Hordelog.php
framework/Notification/lib/Horde/Notification/Handler/Logged.php

index 0be252f..b29e4e1 100644 (file)
@@ -33,7 +33,7 @@ interface Horde_Notification_Handler
      * @return Horde_Notification_Listener  The listener object.
      * @throws Horde_Exception
      */
-    public function attach($listener, array $params = array(), $class = null);
+    public function attach($listener, $params = null, $class = null);
 
     /**
      * Remove a listener from the notification list. This will discard any
index 3b5d947..13ba61f 100644 (file)
@@ -63,7 +63,7 @@ implements Horde_Notification_Handler
      * @return Horde_Notification_Listener  The listener object.
      * @throws Horde_Exception
      */
-    public function attach($listener, array $params = array(), $class = null)
+    public function attach($listener, $params = null, $class = null)
     {
         return $this->_handler->attach($listener, $params, $class);
     }
index be66de1..daf472b 100644 (file)
@@ -66,7 +66,7 @@ class Horde_Notification_Handler_Base implements Horde_Notification_Handler
      * @return Horde_Notification_Listener  The listener object.
      * @throws Horde_Exception
      */
-    public function attach($listener, array $params = array(), $class = null)
+    public function attach($listener, $params = null, $class = null)
     {
         $listener = Horde_String::lower(basename($listener));
         if (!empty($this->_listeners[$listener])) {
index cc93225..5dbdb76 100644 (file)
@@ -53,7 +53,7 @@ implements Horde_Notification_Handler
      * @return Horde_Notification_Listener  The listener object.
      * @throws Horde_Exception
      */
-    public function attach($listener, array $params = array(), $class = null)
+    public function attach($listener, $params = null, $class = null)
     {
         return $this->_handler->attach($listener, $params, $class);
     }
index 979f8b9..63d20d6 100644 (file)
@@ -68,7 +68,7 @@ implements Horde_Notification_Handler
      * @return Horde_Notification_Listener  The listener object.
      * @throws Horde_Exception
      */
-    public function attach($listener, array $params = array(), $class = null)
+    public function attach($listener, $params = null, $class = null)
     {
         return $this->_handler->attach($listener, $params, $class);
     }