Skip to content

Commit 69133e5

Browse files
Minor: Newer array syntax
1 parent c092fa4 commit 69133e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3154,11 +3154,11 @@ protected function matchFirstOrFail(WebDriverSearchContext $page, $selector): We
31543154
* ``` php
31553155
* <?php
31563156
* // <input id="page" value="old" />
3157-
* $I->pressKey('#page','a'); // => olda
3158-
* $I->pressKey('#page',array('ctrl','a'),'new'); //=> new
3159-
* $I->pressKey('#page',array('shift','111'),'1','x'); //=> old!!!1x
3157+
* $I->pressKey('#page', 'a'); // => olda
3158+
* $I->pressKey('#page', ['ctrl', 'a'],'new'); //=> new
3159+
* $I->pressKey('#page', ['shift', '111'],'1','x'); //=> old!!!1x
31603160
* $I->pressKey('descendant-or-self::*[@id='page']','u'); //=> oldu
3161-
* $I->pressKey('#name', array('ctrl', 'a'), \Facebook\WebDriver\WebDriverKeys::DELETE); //=>''
3161+
* $I->pressKey('#name', ['ctrl', 'a'], \Facebook\WebDriver\WebDriverKeys::DELETE); //=>''
31623162
* ```
31633163
*
31643164
* @param string|array|WebDriverBy $element

0 commit comments

Comments
 (0)