Browse Source

Fix test.

dereuromark 8 years ago
parent
commit
d237998e48
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Utility/Utility.php

+ 4 - 1
src/Utility/Utility.php

@@ -412,7 +412,10 @@ class Utility {
 	 */
 	 */
 	public static function trimDeep($value, $transformNullToString = false) {
 	public static function trimDeep($value, $transformNullToString = false) {
 		if (is_array($value)) {
 		if (is_array($value)) {
-			return array_map('self::trimDeep', $value);
+			foreach ($value as $k => $v) {
+				$value[$k] = static::trimDeep($v, $transformNullToString);
+			}
+			return $value;
 		}
 		}
 
 
 		return ($value === null && !$transformNullToString) ? $value : trim($value);
 		return ($value === null && !$transformNullToString) ? $value : trim($value);