Skip to content

Commit

Permalink
Merge pull request #80 from uaoleg/patch-1
Browse files Browse the repository at this point in the history
PHP 8.1: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated
  • Loading branch information
SamMousa authored Jan 14, 2023
2 parents 7b30e55 + ce6b19c commit 8524425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Lib/Connector/Yii2.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public function doRequest(object $request)
$_SERVER['REQUEST_METHOD'] = strtoupper($request->getMethod());
$_SERVER['QUERY_STRING'] = (string)$queryString;

parse_str($queryString, $params);
parse_str($queryString ?: '', $params);
foreach ($params as $k => $v) {
$_GET[$k] = $v;
}
Expand Down

0 comments on commit 8524425

Please sign in to comment.