Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.idea/
.vscode/
vendor/
develop/
coverage/
Expand Down
6 changes: 5 additions & 1 deletion lib/Fhp/Segment/HIUPD/HIUPDv6.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class HIUPDv6 extends BaseSegment implements HIUPD

public function matchesAccount(SEPAAccount $account): bool
{
return !is_null($this->iban) && $this->iban == $account->getIban();
if (!is_null($this->iban)) {
return $this->iban == $account->getIban();
}
// Sparkasse (Koblenz) does not provide an IBAN in this segment, fall back to kontonummer:
return !is_null($this->kontoverbindung->kontonummer) && $this->kontoverbindung->kontonummer == $account->getAccountNumber();
}

public function getErlaubteGeschaeftsvorfaelle(): array
Expand Down
2 changes: 1 addition & 1 deletion lib/Fhp/Syntax/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function serializeSegment(BaseSegment $segment): string
*/
public static function serializeSegments(array $segments): string
{
return implode(array_map(['self', 'serializeSegment'], $segments));
return implode(array_map([self::class, 'serializeSegment'], $segments));
}

/**
Expand Down