Permalink
Browse files

Merge branch 'hotfix/3302'

Close #3302
Fixes #3282
  • Loading branch information...
weierophinney committed Jan 3, 2013
2 parents 1f12a98 + be13673 commit a558176c2259b0aea797b48e405110126aeec8fa
Showing with 1 addition and 3 deletions.
  1. +1 −3 library/Zend/Session/ValidatorChain.php
@@ -7,7 +7,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Session
*/
-
namespace Zend\Session;
use Zend\EventManager\EventManager;
@@ -41,7 +40,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'));
}
}
}
@@ -56,7 +55,6 @@ public function __construct(Storage $storage)
*/
public function attach($event, $callback = null, $priority = 1)
{
- /** @var Validator $context */
$context = null;
if ($callback instanceof Validator) {
$context = $callback;

0 comments on commit a558176

Please sign in to comment.