Skip to content

Commit

Permalink
Merge pull request #151 from davejennings/master
Browse files Browse the repository at this point in the history
Ensure value is a string prior to validation
  • Loading branch information
Shardj authored Jun 21, 2021
2 parents 6148869 + c41fd76 commit ae1a6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Validate/Int.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function isValid($value)

} else {
try {
if (!Zend_Locale_Format::isInteger($value, ['locale' => $this->_locale])) {
if (!Zend_Locale_Format::isInteger(strval($value), ['locale' => $this->_locale])) {
$this->_error(self::NOT_INT);
return false;
}
Expand Down

0 comments on commit ae1a6d3

Please sign in to comment.