Merge pull request #280 from sanyc/patch-6

解决 php7 数组指针问题
This commit is contained in:
ThinkPHP
2016-09-09 22:50:27 +08:00
committed by GitHub

View File

@@ -974,6 +974,7 @@ class Request
$filter[] = $default;
if (is_array($data)) {
array_walk_recursive($data, [$this, 'filterValue'], $filter);
reset($data);
} else {
$this->filterValue($data, $name, $filter);
}