8000 feature #54535 [Validator] Deprecate `Bic::INVALID_BANK_CODE_ERROR` (… · symfony/symfony@75ce82c · GitHub
[go: up one dir, main page]

Skip to content

Commit 75ce82c

Browse files
committed
feature #54535 [Validator] Deprecate Bic::INVALID_BANK_CODE_ERROR (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`
2 parents 6cd69fd + 1f73fbd commit 75ce82c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

UPGRADE-7.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ TwigBundle
5757

5858
* Mark class `TemplateCacheWarmer` as `final`
5959

60+
Validator
61+
---------
62+
63+
* Deprecate `Bic::INVALID_BANK_CODE_ERROR`
64+
6065
Workflow
6166
--------
6267

src/Symfony/Component/Validator/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CHANGELOG
1212
* Add `list` and `associative_array` types to `Type` constraint
1313
* Add the `Charset` constraint
1414
* Add the `requireTld` option to the `Url` constraint
15+
* Deprecate `Bic::INVALID_BANK_CODE_ERROR`
1516

1617
7.0
1718
---

src/Symfony/Component/Validator/Constraints/Bic.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class Bic extends Constraint
2929
{
3030
public const INVALID_LENGTH_ERROR = '66dad313-af0b-4214-8566-6c799be9789c';
3131
public const INVALID_CHARACTERS_ERROR = 'f424c529-7add-4417-8f2d-4b656e4833e2';
32+
/**
33+
* @deprecated since Symfony 7.1, to be removed in 8.0
34+
*/
3235
public const INVALID_BANK_CODE_ERROR = '00559357-6170-4f29-aebd-d19330aa19cf';
3336
public const INVALID_COUNTRY_CODE_ERROR = '1ce76f8d-3c1f-451c-9e62-fe9c3ed486ae';
3437
public const INVALID_CASE_ERROR = '11884038-3312-4ae5-9d04-699f782130c7';

0 commit comments

Comments
 (0)
0