From 08b0e9068d7e0052941bd6f2a6c1829eb54977b7 Mon Sep 17 00:00:00 2001 From: Hunter Perrin Date: Wed, 8 Apr 2015 20:50:39 -0700 Subject: [PATCH] Returning by reference error. --- composer.json | 2 +- src/Hook.php | 2 +- src/HookOverride.php | 2 +- src/HookOverride_extend.php | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 1244464..e77cf41 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "sciactive/hookphp", "description": "Method hooking in PHP.", - "version": "1.2.0", + "version": "1.2.1", "type": "library", "keywords": [ "method hooking", diff --git a/src/Hook.php b/src/Hook.php index 04799f3..a19d927 100644 --- a/src/Hook.php +++ b/src/Hook.php @@ -7,7 +7,7 @@ * Hooks are used to call a callback when a method is called and optionally * manipulate the arguments/function call/return value. * - * @version 1.2.0 + * @version 1.2.1 * @license https://www.gnu.org/licenses/lgpl.html * @author Hunter Perrin * @copyright SciActive.com diff --git a/src/HookOverride.php b/src/HookOverride.php index dbfb3da..16d7df0 100644 --- a/src/HookOverride.php +++ b/src/HookOverride.php @@ -2,7 +2,7 @@ /** * Dynamic HookOverride class. * - * @version 1.2.0 + * @version 1.2.1 * @license https://www.gnu.org/licenses/lgpl.html * @author Hunter Perrin * @copyright SciActive.com diff --git a/src/HookOverride_extend.php b/src/HookOverride_extend.php index c5d8cd2..97fe6da 100644 --- a/src/HookOverride_extend.php +++ b/src/HookOverride_extend.php @@ -2,7 +2,7 @@ /** * Dynamic HookOverride class. * - * @version 1.2.0 + * @version 1.2.1 * @license https://www.gnu.org/licenses/lgpl.html * @author Hunter Perrin * @copyright SciActive.com @@ -37,7 +37,8 @@ public function __construct(&$object, $prefix = '') { } public function &__get($name) { - return $val =& $this->_hookObject->$name; + $val =& $this->_hookObject->$name; + return $val; } public function __set($name, $value) {