From 618eaa039b4cbe3ae79ab71d87341cc20ccc3044 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Sun, 7 Sep 2014 17:30:11 -0400 Subject: [PATCH] Since PHP 5.3 the variable is no longer copied Removing the reference makes the code faster. --- src/Utility/Hash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utility/Hash.php b/src/Utility/Hash.php index 23a2cb33b2c..8daffc43304 100644 --- a/src/Utility/Hash.php +++ b/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; }