Skip to content

Commit

Permalink
Fix [TypeError] strlen(): Argument #1 ($string) must be of type strin…
Browse files Browse the repository at this point in the history
…g, int given (#64)
  • Loading branch information
janfejtek committed Nov 16, 2023
1 parent 41d535c commit ee5d25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Lib/InnerBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ protected function getFormPhpValues(array $requestParams): array
}

parse_str($qs, $expandedValue);
$varName = substr($name, 0, strlen(key($expandedValue)));
$varName = substr($name, 0, strlen((string)key($expandedValue)));
$requestParams = array_replace_recursive($requestParams, [$varName => current($expandedValue)]);
}
}
Expand Down

0 comments on commit ee5d25e

Please sign in to comment.