From 16e3e816352d8afc46db82fa85c2bf776a4d7fdd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Thu, 4 May 2017 12:10:02 +0200 Subject: [PATCH] Add missing type hints MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- tests/acceptance/features/core/Actor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/features/core/Actor.php b/tests/acceptance/features/core/Actor.php index 3a57b7e6054..fdb15aa946a 100644 --- a/tests/acceptance/features/core/Actor.php +++ b/tests/acceptance/features/core/Actor.php @@ -162,7 +162,7 @@ class Actor { * @throws NoSuchElementException if the element, or its ancestor, can not * be found. */ - public function find($elementLocator, $timeout = 0, $timeoutStep = 0.5) { + public function find(Locator $elementLocator, $timeout = 0, $timeoutStep = 0.5) { $timeout = $timeout * $this->findTimeoutMultiplier; return $this->findInternal($elementLocator, $timeout, $timeoutStep); @@ -176,7 +176,7 @@ class Actor { * * @see find($elementLocator, $timeout, $timeoutStep) */ - private function findInternal($elementLocator, $timeout, $timeoutStep) { + private function findInternal(Locator $elementLocator, $timeout, $timeoutStep) { $element = null; $selector = $elementLocator->getSelector(); $locator = $elementLocator->getLocator(); @@ -219,7 +219,7 @@ class Actor { * @return \Behat\Mink\Element\Element the ancestor element found. * @throws NoSuchElementException if the ancestor element can not be found. */ - private function findAncestorElement($elementLocator, $timeout, $timeoutStep) { + private function findAncestorElement(Locator $elementLocator, $timeout, $timeoutStep) { $ancestorElement = $elementLocator->getAncestor(); if ($ancestorElement instanceof Locator) { try { -- 2.39.5