Skip to content
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

fix: Generate valid BIC/SWIFT numbers (#902) #921

Open
wants to merge 1 commit into
base: 1.24
Choose a base branch
from

Conversation

vjandrea
Copy link

@vjandrea vjandrea commented Dec 8, 2024

What is the reason for this PR?

Author's checklist

Summary of changes

swiftBicNumber() now returns SWIFT/BIC numbers that pass validation.
Added a dev requirement for symfony/validator that might be used for other generators as well.

Review checklist

  • All checks have passed
  • Changes are added to the CHANGELOG.md
  • Changes are approved by maintainer

@pimjansen
Copy link

Im not a fan of just adding new packages to the base of Faker

@vjandrea
Copy link
Author

vjandrea commented Dec 9, 2024

I see, I will refactor the test to be package agnostic.

@vjandrea vjandrea force-pushed the fix/902 branch 3 times, most recently from f1e26fa to 66660fd Compare December 9, 2024 11:11
- swiftBicNumber now accepts an optional $countryCode argument to localize the generated value
- using Symfony Validator in tests
@vjandrea
Copy link
Author

@pimjansen I removed the extra dependencies, do you mind to review please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants