--- a/web/lib/Zend/Validate/Identical.php Thu May 07 15:10:09 2015 +0200
+++ b/web/lib/Zend/Validate/Identical.php Thu May 07 15:16:02 2015 +0200
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Identical.php 24593 2012-01-05 20:35:02Z matthew $
+ * @version $Id$
*/
/** @see Zend_Validate_Abstract */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Identical extends Zend_Validate_Abstract
@@ -64,8 +64,7 @@
/**
* Sets validator options
*
- * @param mixed $token
- * @return void
+ * @param mixed $token
*/
public function __construct($token = null)
{
@@ -102,7 +101,7 @@
*/
public function setToken($token)
{
- $this->_tokenString = (string) $token;
+ $this->_tokenString = $token;
$this->_token = $token;
return $this;
}
@@ -121,6 +120,7 @@
* Sets the strict parameter
*
* @param Zend_Validate_Identical
+ * @return $this
*/
public function setStrict($strict)
{
@@ -140,7 +140,7 @@
*/
public function isValid($value, $context = null)
{
- $this->_setValue((string) $value);
+ $this->_setValue($value);
if (($context !== null) && isset($context) && array_key_exists($this->getToken(), $context)) {
$token = $context[$this->getToken()];