Fixed #3282 #3302

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −2
Split
@@ -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'));
}
}
}