diff --git a/Classes/ActorTraits/Checks.php b/Classes/ActorTraits/Checks.php index 9301635..76d3066 100644 --- a/Classes/ActorTraits/Checks.php +++ b/Classes/ActorTraits/Checks.php @@ -104,12 +104,12 @@ public function checkboxIsUnChecked(string $selector) /** * @Given I should see :expected :selector elements - * @param int $expected + * @param int|string $expected * @param string $selector */ - public function seeNElements(int $expected, string $selector) + public function seeNElements(int|string $expected, string $selector) { - $this->seeNumberOfElements($selector, $expected); + $this->seeNumberOfElements($selector, (int)$expected); } /** diff --git a/Classes/ActorTraits/Controls.php b/Classes/ActorTraits/Controls.php index 24952b3..8f66ce7 100644 --- a/Classes/ActorTraits/Controls.php +++ b/Classes/ActorTraits/Controls.php @@ -29,12 +29,12 @@ public function iAmOn(string $page): void * @Given I wait for the text :text * @Given I wait for the text :text in :seconds seconds * @param string $text - * @param int $seconds + * @param int|string $seconds */ - public function iWaitForTheText(string $text, int $seconds = 10): void + public function iWaitForTheText(string $text, int|string $seconds = 10): void { $text = str_replace('\\', '', $text); - $this->waitForText($text); + $this->waitForText($text, (int)$seconds); } /** @@ -89,9 +89,9 @@ public function iCheckOption(string $option): void /** * @Given I wait for :seconds seconds - * @param int $seconds + * @param int|string $seconds */ - public function iWaitForSeconds(int $seconds): void + public function iWaitForSeconds(int|string $seconds): void { $this->wait($seconds); } @@ -175,11 +175,11 @@ public function iSubmitFormWithValues(string $form, array $values): void /** * @Then I wait for invisible :selector in :seconds * @param string $selector - * @param int $seconds + * @param int|string $seconds */ - public function iWaitForElementNotVisible(string $selector, int $seconds): void + public function iWaitForElementNotVisible(string $selector, int|string $seconds): void { - $this->waitForElementNotVisible($selector, $seconds); + $this->waitForElementNotVisible($selector, (int)$seconds); } }