解决 php7 数组指针问题

数组存在key()方法无法正确获得预定值
This commit is contained in:
过客
2016-09-09 18:54:00 +08:00
committed by GitHub
parent 68d1240fea
commit b7de2f0db4

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);
}