Skip to content
Permalink
Browse files

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
  • Loading branch information...
Chris Valliere
Chris Valliere committed Jul 15, 2015
1 parent c4031bf commit 7d253bbfaaac0d4a804327b4267ca57a410702e1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Utility/Hash.php
@@ -781,7 +781,7 @@ public static function dimensions(array $data)
while ($elem = array_shift($data)) {
if (is_array($elem)) {
$depth += 1;
$data =& $elem;
$data = $elem;
} else {
break;
}

0 comments on commit 7d253bb

Please sign in to comment.
You can’t perform that action at this time.