Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #3282

  • Loading branch information...
commit 5c42e3035db30adcb79509a53f1ca1e340bdef1f 1 parent 1675abc
Justin Verweel authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 library/Zend/Session/ValidatorChain.php
View
5 library/Zend/Session/ValidatorChain.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Zend Framework (http://framework.zend.com/)
*
@@ -7,7 +8,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Session
*/
-
namespace Zend\Session;
use Zend\EventManager\EventManager;
@@ -22,6 +22,7 @@
*/
class ValidatorChain extends EventManager
{
+
/**
* @var Storage
*/
@@ -41,7 +42,7 @@ public function __construct(Storage $storage)
$validators = $storage->getMetadata('_VALID');
if ($validators) {
foreach ($validators as $validator => $data) {
- $this->attach('session.validate', new $validator($data), 'isValid');
+ $this->attach('session.validate', array(new $validator($data), 'isValid'));
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.