Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 618eaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/Hash.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 618eaa0

Please sign in to comment.