From 36ed96174989e844305049d84b078100826a02b0 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 29 Oct 2009 15:38:25 +0100 Subject: [PATCH] Be more relaxed on the params argument. --- framework/Notification/lib/Horde/Notification/Handler.php | 2 +- framework/Notification/lib/Horde/Notification/Handler/Alarm.php | 2 +- framework/Notification/lib/Horde/Notification/Handler/Base.php | 2 +- framework/Notification/lib/Horde/Notification/Handler/Hordelog.php | 2 +- framework/Notification/lib/Horde/Notification/Handler/Logged.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/Notification/lib/Horde/Notification/Handler.php b/framework/Notification/lib/Horde/Notification/Handler.php index 0be252f58..b29e4e10a 100644 --- a/framework/Notification/lib/Horde/Notification/Handler.php +++ b/framework/Notification/lib/Horde/Notification/Handler.php @@ -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 diff --git a/framework/Notification/lib/Horde/Notification/Handler/Alarm.php b/framework/Notification/lib/Horde/Notification/Handler/Alarm.php index 3b5d9470e..13ba61f55 100644 --- a/framework/Notification/lib/Horde/Notification/Handler/Alarm.php +++ b/framework/Notification/lib/Horde/Notification/Handler/Alarm.php @@ -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); } diff --git a/framework/Notification/lib/Horde/Notification/Handler/Base.php b/framework/Notification/lib/Horde/Notification/Handler/Base.php index be66de113..daf472be1 100644 --- a/framework/Notification/lib/Horde/Notification/Handler/Base.php +++ b/framework/Notification/lib/Horde/Notification/Handler/Base.php @@ -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])) { diff --git a/framework/Notification/lib/Horde/Notification/Handler/Hordelog.php b/framework/Notification/lib/Horde/Notification/Handler/Hordelog.php index cc932251e..5dbdb76ce 100644 --- a/framework/Notification/lib/Horde/Notification/Handler/Hordelog.php +++ b/framework/Notification/lib/Horde/Notification/Handler/Hordelog.php @@ -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); } diff --git a/framework/Notification/lib/Horde/Notification/Handler/Logged.php b/framework/Notification/lib/Horde/Notification/Handler/Logged.php index 979f8b9ad..63d20d67e 100644 --- a/framework/Notification/lib/Horde/Notification/Handler/Logged.php +++ b/framework/Notification/lib/Horde/Notification/Handler/Logged.php @@ -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); } -- 2.11.0