Skip to content

Commit

Permalink
Merge pull request #6 from ThomasLandauer/patch-1
Browse files Browse the repository at this point in the history
Minor: Newer array syntax in examples
  • Loading branch information
Naktibalda authored Nov 27, 2023
2 parents 05e8969 + 61013e9 commit e493a22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Lib/Interfaces/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,15 +577,15 @@ public function dontSeeInFormFields($formSelector, array $params): void;
*
* ``` php
* <?php
* $I->selectOption('Which OS do you use?', array('Windows','Linux'));
* $I->selectOption('Which OS do you use?', ['Windows', 'Linux']);
* ```
*
* Or provide an associative array for the second argument to specifically define which selection method should be used:
*
* ``` php
* <?php
* $I->selectOption('Which OS do you use?', array('text' => 'Windows')); // Only search by text 'Windows'
* $I->selectOption('Which OS do you use?', array('value' => 'windows')); // Only search by value 'windows'
* $I->selectOption('Which OS do you use?', ['text' => 'Windows']); // Only search by text 'Windows'
* $I->selectOption('Which OS do you use?', ['value' => 'windows']); // Only search by value 'windows'
* ```
*/
public function selectOption($select, $option): void;
Expand Down

0 comments on commit e493a22

Please sign in to comment.