Skip to content

Commit

Permalink
Returning by reference error.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Apr 9, 2015
1 parent 53d934f commit 08b0e90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* @copyright SciActive.com
Expand Down
2 changes: 1 addition & 1 deletion src/HookOverride.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* @copyright SciActive.com
Expand Down
5 changes: 3 additions & 2 deletions src/HookOverride_extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* @copyright SciActive.com
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 08b0e90

Please sign in to comment.