Skip to content

Commit

Permalink
Update Utility.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsizemore committed Sep 23, 2023
1 parent 5443907 commit 40f02e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static function arrayMapDeep(mixed $array, callable $callback): mixed
}
} elseif (is_object($array)) {
foreach (get_object_vars($array) AS $key => $value) {
$array->$key = static::arrayMapDeep($value, $callback); /** @phpstan-ignore-line **/
$array->$key = static::arrayMapDeep($value, $callback);
}
} else {
$array = call_user_func($callback, $array);
Expand Down

0 comments on commit 40f02e9

Please sign in to comment.