Permalink
Browse files

[Validator] Fix code for PHP 5.4

  • Loading branch information...
1 parent 8cef58f commit 950f85d91684b1096a75b0dcba4346938e00a6f5 @Maks3w Maks3w committed May 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Validator/Identical.php
@@ -106,7 +106,7 @@ public function getToken()
*/
public function setToken($token)
{
- $this->tokenString = (string) $token;
+ $this->tokenString = (is_array($token) ? implode($token) : (string) $token);
$this->token = $token;
return $this;
}
@@ -142,7 +142,7 @@ public function setStrict($strict)
*/
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()];

0 comments on commit 950f85d

Please sign in to comment.