Any truthy value works; I regularly use exactly this syntax.

On Saturday, January 19, 2013, Thomas Cantonnet wrote:

> In library/Zend/Validator/AbstractValidator.php:
>
> > @@ -303,7 +303,7 @@ protected function createMessage($messageKey, $value)
> >          ) {
> >              $value = get_class($value) . ' object';
> >          } elseif (is_array($value)) {
> > -            $value = '[' . implode(', ', $value) . ']';
> > +            $value = var_export($value, 1);
> >          } else {
>
> I reckon var_export expects a boolean as a second parameter.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zendframework/zf2/pull/3484/files#r2705210>.
>
>


-- 
Matthew Weier O'Phinney
matthew@weierophinney.net
http://mwop.net/