Skip to content

Commit

Permalink
fix: empty evaluateas false (#9)
Browse files Browse the repository at this point in the history
* fix: empty evaluateas false

* Update ci.yml

* remove action
  • Loading branch information
Dazix authored Oct 29, 2024
1 parent b1a6576 commit 95a88c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Czech.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function validate($bankAccountNumber)
$parts = $this->parseNumber($bankAccountNumber);
}

if (empty($parts)) {
if (empty(array_filter($parts))) {
return false;
}
list($firstPart, $secondPart, $bankCode) = $parts;
Expand Down
4 changes: 4 additions & 0 deletions tests/CzechTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ public function validateProvider()
false,
'0086-3055103/30'
],
[
false,
''
]
];
}
}

0 comments on commit 95a88c2

Please sign in to comment.