You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've worked around it by handling the array to string conversion manually by overriding setValue. This may cause issues with built in validators provided by Zend but it's only a minor inconvenience for my use case.
As the
\Zend\Validator\AbstractValidator::createMessage
method usesvar_export
to convert arrays to strings this fails if the array contains a circular reference. The problem line is https://github.com/zendframework/zend-validator/blob/master/src/AbstractValidator.php#L294.I've provided a quick example of this below which outputs "PHP Warning: var_export does not handle circular references":
Originally posted by @tomp4l at zendframework/zend-validator#82
The text was updated successfully, but these errors were encountered: