Add missing type hints

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2017-05-04 12:10:02 +02:00
parent 59ee22101f
commit 16e3e81635
1 changed files with 3 additions and 3 deletions

View File

@ -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 {