Skip to content

Commit

Permalink
fix: Now all Statements classes can be used with this interface (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustimetal authored Feb 23, 2022
1 parent 2ec8418 commit 2c5d2f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Jejik/MT940/Parser/AbstractParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected function splitTransactions(string $text): array
*
* @throws \Exception
*/
protected function statement(string $text): ?Statement
protected function statement(string $text): ?StatementInterface
{
$text = trim($text);
if (($pos = strpos($text, ':20:')) === false) {
Expand Down Expand Up @@ -272,7 +272,7 @@ protected function statementHeader(string $text): void
*
* @throws \Exception
*/
protected function statementBody(string $text): ?Statement
protected function statementBody(string $text): ?StatementInterface
{
$accountNumber = $this->accountNumber($text);
$accountCurrency = $this->accountCurrency($text);
Expand Down

0 comments on commit 2c5d2f4

Please sign in to comment.