Skip to content

Commit

Permalink
Fixed return by reference error.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Nov 25, 2014
1 parent 52bff81 commit 04f4f6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "requirephp",
"version": "1.1.1",
"version": "1.1.3",
"main": "require.php",
"ignore": [
"test*",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
@@ -1,7 +1,7 @@
{
"name": "sciactive/requirephp",
"description": "An implementation of dependency injection (like RequireJS) in PHP.",
"version": "1.1.1",
"version": "1.1.3",
"type": "library",
"keywords": [
"dependency injection",
Expand Down
4 changes: 2 additions & 2 deletions require.php
Expand Up @@ -5,7 +5,7 @@
* An implementation of dependency injection and service location (like
* RequireJS) in PHP. Written by Hunter Perrin for 2be.io.
*
* @version 1.1.1
* @version 1.1.3
* @license https://www.gnu.org/licenses/lgpl.html
* @author Hunter Perrin <hperrin@gmail.com>
* @copyright SciActive.com
Expand All @@ -20,7 +20,7 @@ class RPHP {
private static $aliases = array();
private static $depth = 0;

public static function &_($arg1 = null, $arg2 = null, $arg3 = null) {
public static function _($arg1 = null, $arg2 = null, $arg3 = null) {
if (isset($arg1) && !isset($arg2) && !isset($arg3)) { // Calling require('name') to get the object.
$arg1 = RPHP::parseAlias($arg1);
if (!RPHP::runModule($arg1))
Expand Down

0 comments on commit 04f4f6f

Please sign in to comment.