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

Commit

Permalink
Merge remote-tracking branch 'weierophinney/hotfix/zf2-427'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory.php
Expand Up @@ -205,7 +205,7 @@ public function createInputFilter($inputFilterSpecification)
}

$class = 'Zend\InputFilter\InputFilter';
if (isset($inputFilterSpecification['type'])) {
if (isset($inputFilterSpecification['type']) && is_string($inputFilterSpecification['type'])) {
$class = $inputFilterSpecification['type'];
if (!class_exists($class)) {
throw new Exception\RuntimeException(sprintf(
Expand Down

0 comments on commit 1330305

Please sign in to comment.