Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Sep 2, 2022
1 parent cf15897 commit 4f2b318
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/Validation/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ private function isStringList(array $array): bool
$expectedKey = 0;

foreach ($array as $key => $val) {
// Note: also covers PHP array key conversion, e.g. '5' and 5.1 both become 5
if (! is_int($key)) {
return false;
}
Expand Down

0 comments on commit 4f2b318

Please sign in to comment.