Skip to content

Commit 8784d1e

Browse files
committed
Session: fix __call()
1 parent 6a4ef23 commit 8784d1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/WebDriver/Session.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,13 +552,13 @@ public function __call($name, $arguments)
552552
{
553553
$map = [
554554
'application_cache' => 'applicationCache',
555-
'execute_async' => 'executeAsync',
556-
'local_storage' => 'localStorage',
557-
'session_storage' => 'sessionStorage',
555+
'execute_async' => 'executeAsync',
556+
'local_storage' => 'localStorage',
557+
'session_storage' => 'sessionStorage',
558558
];
559559

560560
if (array_key_exists($name, $map)) {
561-
$name = $map[$name];
561+
return call_user_func_array([$this, $map[$name]], $arguments);
562562
}
563563

564564
// fallback to executing WebDriver commands

0 commit comments

Comments
 (0)