Skip to content

Commit d195b21

Browse files
abnegateclaude
andcommitted
fix: accept int|string natively in Sequence validator without casting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b4e2bff commit d195b21

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Database/Validator/Sequence.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ public function isValid($value): bool
4141
return false;
4242
}
4343

44-
if (\is_int($value)) {
45-
$value = (string) $value;
46-
}
47-
48-
if (!\is_string($value)) {
44+
if (!\is_string($value) && !\is_int($value)) {
4945
return false;
5046
}
5147

0 commit comments

Comments
 (0)