We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following code was working in 1.x but fails in 2.x because validations array is not cleared:
validations
$validator = new Validator(); if ($validator->validate(/* invalid iban */) || $validator->validate(/* valid iban */)) { echo "One of the ibans is correct"; }
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. Would you like to provide a fix? Like you said, clearing the violations array at the beginning of the Validator::validate method (https://github.com/jschaedl/iban-validation/blob/master/src/Validator.php#L53) should fix it.
violations
Validator::validate
Sorry, something went wrong.
I'll give it a try
https://github.com/jschaedl/iban-validation/releases/tag/v2.0.1
@jacekkarczmarczyk Thanks again!
Cheers, thanks for release!
Successfully merging a pull request may close this issue.
Following code was working in 1.x but fails in 2.x because
validations
array is not cleared:The text was updated successfully, but these errors were encountered: