Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'hotfix/3302'

Close #3302
Fixes #3282
  • Loading branch information...
commit a558176c2259b0aea797b48e405110126aeec8fa 2 parents 1f12a98 + be13673
@weierophinney weierophinney authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 library/Zend/Session/ValidatorChain.php
View
4 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;
Please sign in to comment.
Something went wrong with that request. Please try again.