From cc812ad7328198802b0387c89b6a7bbba1091a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Sat, 29 Dec 2018 11:48:04 +0800 Subject: [PATCH] Fixed Arr::flatten , INF is float not int. --- src/utils/src/Arr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/src/Arr.php b/src/utils/src/Arr.php index e05c5d625..f7cea5f70 100644 --- a/src/utils/src/Arr.php +++ b/src/utils/src/Arr.php @@ -168,7 +168,7 @@ class Arr /** * Flatten a multi-dimensional array into a single level. */ - public static function flatten(array $array, int $depth = INF): array + public static function flatten(array $array, $depth = INF): array { $result = []; foreach ($array as $item) {