Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit ca38934

Browse files
committed
Merge pull request #204 from codisart/issue-201
issue-201 - add two countries for SEPA validation (croatia and san marino)
2 parents 38b78e6 + 8706c08 commit ca38934

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Iban.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class Iban extends AbstractValidator
5656
protected static $sepaCountries = [
5757
'AT', 'BE', 'BG', 'CY', 'CZ', 'DK', 'FO', 'GL', 'EE', 'FI', 'FR', 'DE',
5858
'GI', 'GR', 'HU', 'IS', 'IE', 'IT', 'LV', 'LI', 'LT', 'LU', 'MT', 'MC',
59-
'NL', 'NO', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'CH', 'GB'
59+
'NL', 'NO', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'CH', 'GB', 'SM',
60+
'HR',
6061
];
6162

6263
/**

test/IbanTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ public function ibanDataProvider()
8888
['AE070331234567890123456', true],
8989
['GB29NWBK60161331926819', true],
9090
['VG96VPVG0000012345678901', true],
91-
9291
['DO17552081023122561803924090', true],
92+
['SM76P0854009812123456789123', true],
93+
['HR1723600001101234565', true],
9394
];
9495
}
9596

0 commit comments

Comments
 (0)