@@ -275,7 +275,7 @@ public function dontSeeInSource(string $raw): void;
275
275
* ]);
276
276
* ```
277
277
*/
278
- public function submitForm ($ selector , array $ params , string $ button = null ): void ;
278
+ public function submitForm ($ selector , array $ params , ? string $ button = null ): void ;
279
279
280
280
/**
281
281
* Perform a click on a link or a button, given by a locator.
@@ -317,7 +317,7 @@ public function click($link, $context = null): void;
317
317
* $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>
318
318
* ```
319
319
*/
320
- public function seeLink (string $ text , string $ url = null ): void ;
320
+ public function seeLink (string $ text , ? string $ url = null ): void ;
321
321
322
322
/**
323
323
* Checks that the page doesn't contain a link with the given string.
@@ -410,7 +410,7 @@ public function dontSeeCurrentUrlMatches(string $uri): void;
410
410
* $uri = $I->grabFromCurrentUrl();
411
411
* ```
412
412
*/
413
- public function grabFromCurrentUrl (string $ uri = null ): mixed ;
413
+ public function grabFromCurrentUrl (? string $ uri = null ): mixed ;
414
414
415
415
/**
416
416
* Checks that the specified checkbox is checked.
@@ -692,7 +692,7 @@ public function grabAttributeFrom($cssOrXpath, string $attribute): mixed;
692
692
*
693
693
* @return string[]
694
694
*/
695
- public function grabMultiple ($ cssOrXpath , string $ attribute = null ): array ;
695
+ public function grabMultiple ($ cssOrXpath , ? string $ attribute = null ): array ;
696
696
697
697
/**
698
698
* Checks that the given element exists on the page and is visible.
0 commit comments