Browse files

Fixed the phpdoc of setValue as it can also receive an array or a boo…

…lean
  • Loading branch information...
1 parent 1afdb9c commit d89b2ec86dc78ff9c8f61dff2504d54cdadd7f03 @stof stof committed May 17, 2014
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/Behat/Mink/Driver/DriverInterface.php
  2. +2 −2 src/Behat/Mink/Element/NodeElement.php
View
6 src/Behat/Mink/Driver/DriverInterface.php
@@ -343,7 +343,7 @@ public function getAttribute($xpath, $name);
*
* @param string $xpath
*
- * @return mixed
+ * @return string|bool|array
*
* @throws UnsupportedDriverActionException When operation not supported by the driver
* @throws DriverException When the operation cannot be done
@@ -355,8 +355,8 @@ public function getValue($xpath);
/**
* Sets element's value by it's XPath query.
*
- * @param string $xpath
- * @param string $value
+ * @param string $xpath
+ * @param string|bool|array $value
*
* @throws UnsupportedDriverActionException When operation not supported by the driver
* @throws DriverException When the operation cannot be done
View
4 src/Behat/Mink/Element/NodeElement.php
@@ -84,7 +84,7 @@ public function getTagName()
*
* Calling this method on other elements than form fields or option elements is not allowed.
*
- * @return mixed
+ * @return string|bool|array
*/
public function getValue()
{
@@ -96,7 +96,7 @@ public function getValue()
*
* Calling this method on other elements than form fields is not allowed.
*
- * @param string $value
+ * @param string|bool|array $value
*
* @see NodeElement::getValue for the format of the value for each type of field
*/

0 comments on commit d89b2ec

Please sign in to comment.