This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Zend\I18n\Validator\Float does not set error message on NOT_FLOAT. #6647
Comments
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Sep 8, 2014
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Sep 22, 2014
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Oct 11, 2014
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Oct 18, 2014
samsonasik
added a commit
to samsonasik/zf2
that referenced
this issue
Nov 22, 2014
Ocramius
added a commit
that referenced
this issue
Nov 27, 2014
Ocramius
added a commit
that referenced
this issue
Nov 27, 2014
Handled in #6648 |
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
…inor CS fixes (spacing)
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
…dding `@group` annotation referencing the open pull request
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
…endframework#6647-zend-i18n-validator-float-not-float-error-message' Close zendframework/zendframework#6648 Close zendframework/zendframework#6647
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
…endframework#6647-zend-i18n-validator-float-not-float-error-message' into develop Close zendframework/zendframework#6648 Close zendframework/zendframework#6647 Forward port zendframework/zendframework#6648 Forward port zendframework/zendframework#6647
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The float validator does not set a error message if value is not a float.
Method "isValid(...)" does only set a error if the value is INVALID. For NOT_FLOAT status the method "$this->error(...)" will not be called. If validator will be used for checking a value the validator will return "false" for none float values but the error message is empty.
Problem could be fixed if you add "$this->error(self::NOT_FLOAT);" before "return false;" on "isValid(...)" method.
The text was updated successfully, but these errors were encountered: