Skip to content

Commit e493a22

Browse files
authored
Merge pull request #6 from ThomasLandauer/patch-1
Minor: Newer array syntax in examples
2 parents 05e8969 + 61013e9 commit e493a22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Lib/Interfaces/Web.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,15 +577,15 @@ public function dontSeeInFormFields($formSelector, array $params): void;
577577
*
578578
* ``` php
579579
* <?php
580-
* $I->selectOption('Which OS do you use?', array('Windows','Linux'));
580+
* $I->selectOption('Which OS do you use?', ['Windows', 'Linux']);
581581
* ```
582582
*
583583
* Or provide an associative array for the second argument to specifically define which selection method should be used:
584584
*
585585
* ``` php
586586
* <?php
587-
* $I->selectOption('Which OS do you use?', array('text' => 'Windows')); // Only search by text 'Windows'
588-
* $I->selectOption('Which OS do you use?', array('value' => 'windows')); // Only search by value 'windows'
587+
* $I->selectOption('Which OS do you use?', ['text' => 'Windows']); // Only search by text 'Windows'
588+
* $I->selectOption('Which OS do you use?', ['value' => 'windows']); // Only search by value 'windows'
589589
* ```
590590
*/
591591
public function selectOption($select, $option): void;

0 commit comments

Comments
 (0)