Skip to content

Commit f7d5096

Browse files
committed
fix: controllo su iban
1 parent b776d79 commit f7d5096

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/banche/src/IBAN.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public function __construct($iban)
399399

400400
$length = strlen($this->iban);
401401
$current = strlen($nation);
402-
while ($current <= $length) {
402+
while ($current < $length) {
403403
$char = $structure[$current];
404404
if (in_array($char, $keys)) {
405405
$count = substr_count($structure, $char);
@@ -435,7 +435,7 @@ public static function generate($contents = [])
435435
$length = strlen($structure);
436436
$current = strlen((string) $nation);
437437
$result = $nation;
438-
while ($current <= $length) {
438+
while ($current < $length) {
439439
$char = $structure[$current];
440440
if (in_array($char, $keys)) {
441441
$count = substr_count($structure, $char);

0 commit comments

Comments
 (0)