diff --git a/src/Lib/Interfaces/PageSourceSaver.php b/src/Lib/Interfaces/PageSourceSaver.php index 3294d96..90625ae 100644 --- a/src/Lib/Interfaces/PageSourceSaver.php +++ b/src/Lib/Interfaces/PageSourceSaver.php @@ -27,5 +27,5 @@ public function _savePageSource(string $filename): void; * // saved to: tests/_output/debug/2017-05-26_14-24-11_4b3403665fea6.html * ``` */ - public function makeHtmlSnapshot(string $name = null): void; + public function makeHtmlSnapshot(?string $name = null): void; } diff --git a/src/Lib/Interfaces/Web.php b/src/Lib/Interfaces/Web.php index 688ff78..e3aa170 100644 --- a/src/Lib/Interfaces/Web.php +++ b/src/Lib/Interfaces/Web.php @@ -275,7 +275,7 @@ public function dontSeeInSource(string $raw): void; * ]); * ``` */ - public function submitForm($selector, array $params, string $button = null): void; + public function submitForm($selector, array $params, ?string $button = null): void; /** * Perform a click on a link or a button, given by a locator. @@ -317,7 +317,7 @@ public function click($link, $context = null): void; * $I->seeLink('Logout','/logout'); // matches Logout * ``` */ - public function seeLink(string $text, string $url = null): void; + public function seeLink(string $text, ?string $url = null): void; /** * Checks that the page doesn't contain a link with the given string. @@ -410,7 +410,7 @@ public function dontSeeCurrentUrlMatches(string $uri): void; * $uri = $I->grabFromCurrentUrl(); * ``` */ - public function grabFromCurrentUrl(string $uri = null): mixed; + public function grabFromCurrentUrl(?string $uri = null): mixed; /** * Checks that the specified checkbox is checked. @@ -692,7 +692,7 @@ public function grabAttributeFrom($cssOrXpath, string $attribute): mixed; * * @return string[] */ - public function grabMultiple($cssOrXpath, string $attribute = null): array; + public function grabMultiple($cssOrXpath, ?string $attribute = null): array; /** * Checks that the given element exists on the page and is visible.