Skip to content

Commit 5d65696

Browse files
committed
Splitted string into char array
1 parent df9a00e commit 5d65696

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/WebDriverKeys.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ class WebDriverKeys {
9090
* @return array
9191
*/
9292
public static function encode($keys) {
93+
94+
if(is_numeric($keys))
95+
$keys = '' . $keys;
96+
9397
if (is_string($keys)) {
94-
$keys = array($keys);
98+
$keys = str_split($keys);
9599
}
96100

97101
$encoded = array();

0 commit comments

Comments
 (0)