-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'integer' sometimes give an error? #313
Comments
Unfortunately the small change with 'true' as an addition still doesn't work as intended :/ Does anyone know what to do? |
Can you provide some sample input that causes failures? It should not be related to #300 : hitting PHP_INT_MAX with a 6 digit number seems unlikely. |
FORM: PHP:
Sometimes it works but many times i get the error that the input is not a interger. The input is a integer in format '123456' for OTP (6 numbers). |
What I meant was input the validator received. Like what number gives an error (always or sometimes) |
The input numbers are always different but are integer, i really don't understand why it give the error that it aren't integer. Edit: sometimes it passed sometimes it gives an error but only at this script, I never had a issue otherwhere. EDIT: i remove the integer validation until i found out why it happends, until then i use the regex: The input is a ONE TIME PASSWORD :) |
So now we have a new problem :) It fails for some input, but we can't know if that input should fail or not, because we don't know what it is. |
Hello,
I use the following code to protect an OTP field (6 numbers).
However, 'integer' sometimes gives me an error that it must be numbers although only numbers are entered.
Usually this works but sometimes I still get an error message.
What is the reason for this?
EDIT: Maybe related to this: #300 same behavour.
Maybe 'declare(strict_types=1);' makes problems too?
EDIT2: I have now changed the affected row to '$v->rule('integer', 'otp', true)->label(setLabel('otp'));' (attached true), will this resolve the issue in strict_type 1? After some tests it works.
Thanks in advance
The text was updated successfully, but these errors were encountered: