From 61013e9347e0f904a4340885a836ef6ddc216a23 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Fri, 24 Nov 2023 09:50:42 +0100 Subject: [PATCH] Minor: Newer array syntax --- src/Lib/Interfaces/Web.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Lib/Interfaces/Web.php b/src/Lib/Interfaces/Web.php index a4cd051..4d397b2 100644 --- a/src/Lib/Interfaces/Web.php +++ b/src/Lib/Interfaces/Web.php @@ -577,15 +577,15 @@ public function dontSeeInFormFields($formSelector, array $params): void; * * ``` php * 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 * 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;