8000 [Validator] added BIC (SWIFT-BIC) validation constraint by mvhirsch · Pull Request #15519 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] added BIC (SWIFT-BIC) validation constraint #15519

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

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
[Validator] Using UUIDs instead of scalar values. refs #15519
  • Loading branch information
mvhirsch committed Sep 25, 2015
commit ec839e730143ffcf194fba49ac25d3b34ef2610f
10 changes: 5 additions & 5 deletions src/Symfony/Component/Validator/Constraints/Bic.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
*/
class Bic extends Constraint
{
const INVALID_LENGTH_ERROR = 1;
const INVALID_CHARACTERS_ERROR = 2;
const INVALID_BANK_CODE_ERROR = 3;
const INVALID_COUNTRY_CODE_ERROR = 4;
const INVALID_CASE_ERROR = 5;
const INVALID_LENGTH_ERROR = '66dad313-af0b-4214-8566-6c799be9789c';
const INVALID_CHARACTERS_ERROR = 'f424c529-7add-4417-8f2d-4b656e4833e2';
const INVALID_BANK_CODE_ERROR = '00559357-6170-4f29-aebd-d19330aa19cf';
const INVALID_COUNTRY_CODE_ERROR = '1ce76f8d-3c1f-451c-9e62-fe9c3ed486ae';
const INVALID_CASE_ERROR = '11884038-3312-4ae5-9d04-699f782130c7';

protected static $errorNames = array(
self::INVALID_LENGTH_ERROR => 'INVALID_LENGTH_ERROR',
Expand Down
0