diff --git a/src/Codeception/Lib/InnerBrowser.php b/src/Codeception/Lib/InnerBrowser.php index 7d80e37..182db32 100644 --- a/src/Codeception/Lib/InnerBrowser.php +++ b/src/Codeception/Lib/InnerBrowser.php @@ -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)]); } }