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

[Validator] Allow BICs’ first four characters to be digits #54219

Merged
merged 1 commit into from Mar 12, 2024

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Mar 9, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #51975
License MIT

While a lot of sources claim a BIC’s first four characters must be letters, this is not the case since ISO 9362:1994. The confusion may come from SWIFT (ISO 9362’s registration authority) saying that

[We have] no plan to issue BICs with numeric characters in the first 4 characters.

Source (clicking this link will trigger a download)

However, the next paragraph says

If applications have implemented restrictions on the allowed characters, it would be good practice to remove this restriction at the occasion of a software update to respect the standard specification of 4 alpha-numeric characters.

As @luxemate stumbled on such a valid BIC (see linked issue), this PR removes the Bic::INVALID_BANK_CODE_ERROR check. This constant won’t be referenced anymore so it may be deprecated and removed later.

@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit 6b550a1 into symfony:5.4 Mar 12, 2024
10 of 12 checks passed
@MatTheCat MatTheCat deleted the ticket_51975 branch March 12, 2024 13:15
This was referenced Apr 2, 2024
fabpot added a commit that referenced this pull request Apr 10, 2024
…MatTheCat)

This PR was merged into the 7.1 branch.

Discussion
----------

[Validator] Deprecate `Bic::INVALID_BANK_CODE_ERROR`

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Issues        | N/A
| License       | MIT

Follow-up of #54219: now that `Bic::INVALID_BANK_CODE_ERROR` is no longer referenced, it should be deprecated then removed.

Commits
-------

1f73fbd [Validator] Deprecate `Bic::INVALID_BANK_CODE_ERROR`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants