[icinga-checkins] icinga.org: icingaweb2-module-director/master: JobHook: define static callable as string

git at icinga.org git at icinga.org
Fri Jun 17 13:58:34 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 80c8d6a467ed0fae28a720b8d8801486adfd36f3
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=80c8d6a467ed0fae28a720b8d8801486adfd36f3

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Jun 17 13:58:12 2016 +0200

JobHook: define static callable as string

---

 library/Director/Hook/JobHook.php |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/library/Director/Hook/JobHook.php b/library/Director/Hook/JobHook.php
index 5b3ef3f..b592a52 100644
--- a/library/Director/Hook/JobHook.php
+++ b/library/Director/Hook/JobHook.php
@@ -89,19 +89,19 @@ abstract class JobHook
      */
     protected function info($message)
     {
-        call_user_func_array(Logger::info, func_num_args());
+        call_user_func_array('Logger::info', func_num_args());
         return $this;
     }
 
     protected function warning($message)
     {
-        call_user_func_array(Logger::warn, func_num_args());
+        call_user_func_array('Logger::warn', func_num_args());
         return $this;
     }
 
     protected function error($message)
     {
-        call_user_func_array(Logger::error, func_num_args());
+        call_user_func_array('Logger::error', func_num_args());
         return $this;
     }
 }



More information about the icinga-checkins mailing list