We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c9227 commit 609ad4eCopy full SHA for 609ad4e
1 file changed
src/Http/RequestFactory.php
@@ -111,7 +111,7 @@ public function createHttpRequest(): Request
111
$reChars = '#^[' . self::CHARS . ']*+\z#u';
112
if (!$this->binary) {
113
$list = [&$query, &$post, &$cookies];
114
- while ([$key, $val] = each($list)) {
+ foreach ($list as $key => &$val) {
115
foreach ($val as $k => $v) {
116
if (is_string($k) && (!preg_match($reChars, $k) || preg_last_error())) {
117
unset($list[$key][$k]);
@@ -145,7 +145,7 @@ public function createHttpRequest(): Request
145
}
146
147
148
- while ([, $v] = each($list)) {
+ foreach ($list as &$v) {
149
if (!isset($v['name'])) {
150
continue;
151
0 commit comments