Browse Source

Removed pass by reference

There does not seem to be a good reason to pass by reference here.  Really PHP always passes by reference anyway.

Reasons:
http://php.net/manual/en/language.references.php
http://derickrethans.nl/files/phparch-php-variables-article.pdf
Chris Valliere 10 years ago
parent
commit
7d253bbfaa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Utility/Hash.php

+ 1 - 1
src/Utility/Hash.php

@@ -781,7 +781,7 @@ class Hash
         while ($elem = array_shift($data)) {
             if (is_array($elem)) {
                 $depth += 1;
-                $data =& $elem;
+                $data = $elem;
             } else {
                 break;
             }