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

Commit 9e75f58

Browse files
committed
Merge branch 'hotfix/204'
Close #204 Fixes #201
2 parents 38b78e6 + d95e2cc commit 9e75f58

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ All notable changes to this project will be documented in this file, in reverse
1414
- [#203](https://github.com/zendframework/zend-validator/pull/203) adds support
1515
for the new Russian bank card "Mir".
1616

17+
- [#204](https://github.com/zendframework/zend-validator/pull/204) adds support
18+
to the IBAN validator for performing SEPA validation against Croatia and San
19+
Marino.
20+
1721
### Changed
1822

1923
- Nothing.

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)