Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#7380 from larsnystrom/…
Browse files Browse the repository at this point in the history
…unused-code

Remove unused code
  • Loading branch information
weierophinney committed May 6, 2015
6 parents 806708a + 5fc842b + f48fdbd + adb1dc9 + 0a9f245 + 0c3d8b0 commit a72a749
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,7 @@ protected function initializeValidatorChain()
continue;
}

$referenceValue = null;
if (is_array($validatorValues) && array_key_exists($validator, $validatorValues)) {
$referenceValue = $validatorValues[$validator];
}

$validator = new $validator($referenceValue);
$validator = new $validator(null);
$validatorChain->attach('session.validate', array($validator, 'isValid'));
}
}
Expand Down

0 comments on commit a72a749

Please sign in to comment.