From 778fe7ef85a38edfede66b9ae682a89d9204d757 Mon Sep 17 00:00:00 2001 From: hongweipeng Date: Wed, 23 Oct 2019 10:09:39 +0800 Subject: [PATCH] =?UTF-8?q?php7.1=E5=BC=80=E5=A7=8B=20array=5Fwalk=5Frecur?= =?UTF-8?q?sive=20=E5=B0=B1=E4=B8=8D=E6=B6=88=E8=80=97=E6=8C=87=E9=92=88?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/think/Request.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/think/Request.php b/src/think/Request.php index f4b6513049..f4f33e8999 100644 --- a/src/think/Request.php +++ b/src/think/Request.php @@ -1101,7 +1101,6 @@ public function cookie(string $name = '', $default = null, $filter = '') if (is_array($data)) { array_walk_recursive($data, [$this, 'filterValue'], $filter); - reset($data); } else { $this->filterValue($data, $name, $filter); } @@ -1288,7 +1287,6 @@ protected function filterData($data, $filter, $name, $default) if (is_array($data)) { array_walk_recursive($data, [$this, 'filterValue'], $filter); - reset($data); } else { $this->filterValue($data, $name, $filter); }