Skip to content

Commit ee5d25e

Browse files
authored
Fix [TypeError] strlen(): Argument #1 ($string) must be of type string, int given (#64)
1 parent 41d535c commit ee5d25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Lib/InnerBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ protected function getFormPhpValues(array $requestParams): array
19061906
}
19071907

19081908
parse_str($qs, $expandedValue);
1909-
$varName = substr($name, 0, strlen(key($expandedValue)));
1909+
$varName = substr($name, 0, strlen((string)key($expandedValue)));
19101910
$requestParams = array_replace_recursive($requestParams, [$varName => current($expandedValue)]);
19111911
}
19121912
}

0 commit comments

Comments
 (0)