Skip to content
Permalink
Browse files

Since PHP 5.3 the variable is no longer copied

Removing the reference makes the code faster.
  • Loading branch information...
jrbasso committed Sep 7, 2014
1 parent 0a1624f commit 618eaa039b4cbe3ae79ab71d87341cc20ccc3044
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Utility/Hash.php
@@ -65,7 +65,7 @@ public static function get(array $data, $path, $default = null) {
foreach ($parts as $key) {
if (is_array($data) && isset($data[$key])) {
$data =& $data[$key];
$data = $data[$key];
} else {
return $default;
}

0 comments on commit 618eaa0

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