From b6fdbf055e44da3f94853e66b108daf7b7d97a90 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 17 Aug 2015 14:35:35 +0200 Subject: [PATCH] Remove unnecessary pass by refenrece in the loader refs #5786 --- library/Icinga/Application/Loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Application/Loader.php b/library/Icinga/Application/Loader.php index d3cd0ef40..70f2877ed 100644 --- a/library/Icinga/Application/Loader.php +++ b/library/Icinga/Application/Loader.php @@ -128,7 +128,7 @@ class Loader { // Think about to add class pathes to php include path // this could be faster (tg) - spl_autoload_register(array(&$this, 'loadClass')); + spl_autoload_register(array($this, 'loadClass')); } /** @@ -136,6 +136,6 @@ class Loader */ public function unregister() { - spl_autoload_unregister(array(&$this, 'loadClass')); + spl_autoload_unregister(array($this, 'loadClass')); } }