Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\I18n\Validator\Float does not set error message on NOT_FLOAT. #6647

Closed
arkasai opened this issue Sep 8, 2014 · 2 comments
Closed

Zend\I18n\Validator\Float does not set error message on NOT_FLOAT. #6647

arkasai opened this issue Sep 8, 2014 · 2 comments
Assignees
Milestone

Comments

@arkasai
Copy link

arkasai commented Sep 8, 2014

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.

@samsonasik
Copy link
Contributor

@arkasai I created PR #6648 to fix it

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 Ocramius added this to the 2.3.4 milestone Nov 27, 2014
@Ocramius Ocramius self-assigned this Nov 27, 2014
Ocramius added a commit that referenced this issue Nov 27, 2014
Ocramius added a commit that referenced this issue Nov 27, 2014
Ocramius added a commit that referenced this issue Nov 27, 2014
…error-message' into develop

Close #6648
Close #6647
Forward port #6648
Forward port #6647
@Ocramius
Copy link
Member

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
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
gianarb pushed a commit to zendframework/zend-i18n that referenced this issue May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants