From 2c5d2f48aaa154fed8687dbd87c0a7b33e042ec2 Mon Sep 17 00:00:00 2001 From: iMetal <36792829+faustimetal@users.noreply.github.com> Date: Wed, 23 Feb 2022 16:44:39 +0100 Subject: [PATCH] fix: Now all Statements classes can be used with this interface (#45) --- lib/Jejik/MT940/Parser/AbstractParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Jejik/MT940/Parser/AbstractParser.php b/lib/Jejik/MT940/Parser/AbstractParser.php index bc3f28e..7ac3b37 100644 --- a/lib/Jejik/MT940/Parser/AbstractParser.php +++ b/lib/Jejik/MT940/Parser/AbstractParser.php @@ -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) { @@ -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);