zendframework/zf2 — pull request #4351 by noopable (2013-04-29 02:46:07+00:00)
Title: fix the constructor's type-autodetection accepts wrong parameters

```php
$validator = new \Zend\Validator\NotEmpty(array('translatorEnabled' => true));
var_dump($validator->getType());
var_dump($validator->isValid(''));
```
expects
493
false

but actually
1
true.

because if 'type' is not found in $options, the autodetection compares bool(true) to string(constants), it is true. And autodetector set 'type' true.
So, in_array 's third parameter should be true.