Skip to content

Commit

Permalink
修复 int数组验证
Browse files Browse the repository at this point in the history
  • Loading branch information
lphkxd committed Aug 1, 2020
1 parent 3c95cdb commit 545bcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validate/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ function intOrArrayInt($array)
function arrayHasOnlyInts($array)
{
foreach ($array as $value) {
if (!is_int($value)) // there are several ways to do this
if (!is_numeric($value)) // there are several ways to do this
{
return false;
}
Expand Down

0 comments on commit 545bcbe

Please sign in to comment.