Skip to content

Commit 8524425

Browse files
authored
Merge pull request #80 from uaoleg/patch-1
PHP 8.1: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated
2 parents 7b30e55 + ce6b19c commit 8524425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Lib/Connector/Yii2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public function doRequest(object $request)
333333
$_SERVER['REQUEST_METHOD'] = strtoupper($request->getMethod());
334334
$_SERVER['QUERY_STRING'] = (string)$queryString;
335335

336-
parse_str($queryString, $params);
336+
parse_str($queryString ?: '', $params);
337337
foreach ($params as $k => $v) {
338338
$_GET[$k] = $v;
339339
}

0 commit comments

Comments
 (0)