summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-05-04 12:10:02 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-05-06 12:37:55 +0200
commit16e3e816352d8afc46db82fa85c2bf776a4d7fdd (patch)
tree1147291ce137636fe4cb8d4082187221b62cfe6a /tests/acceptance/features
parent59ee22101f228d9dec8c3930da0b12b0766a479a (diff)
downloadnextcloud-server-16e3e816352d8afc46db82fa85c2bf776a4d7fdd.tar.gz
nextcloud-server-16e3e816352d8afc46db82fa85c2bf776a4d7fdd.zip
Add missing type hints
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance/features')
-rw-r--r--tests/acceptance/features/core/Actor.php6
1 files 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 {