Issues

ZF2-331: Digits Validator append %value% to an empty string error message

Issue Type: Bug Created: 2012-05-30T10:24:26.000+0000 Last Updated: 2012-07-10T16:34:39.000+0000 Status: Resolved Fix version(s): Reporter: Michael Ben-Nes (mbn_18) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Validator

  • validator

Related issues: Attachments:

Description

In Zend\Validator\Digits the following error return on empty string:

<pre class="highlight">
self::STRING_EMPTY => "'%value%' is an empty string",

I think the %value% should not be displayd as it actualy empty. The result is a string with two quotes at the start:

<pre class="highlight">
'' is an empty string

Comments

Posted by Maks 3w (maks3w) on 2012-06-28T12:22:35.000+0000

This PR changes that template https://github.com/zendframework/zf2/…

Posted by Maks 3w (maks3w) on 2012-07-10T16:34:39.000+0000

Patch is merged

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts