Skip to content

Commit 4bc896b

Browse files
Merge pull request #4 from lacrm/patch-2
Update DbCustomerCreditLineManager.php
2 parents 5852f14 + e495e72 commit 4bc896b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Synolia/Bundle/CreditLineBundle/Manager/DbCustomerCreditLineManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(DoctrineHelper $doctrineHelper)
1717
public function getCreditLineAmount(Customer $customer): float
1818
{
1919
// @phpstan-ignore-next-line
20-
return $customer->getSyCreditLine();
20+
return $customer->getSyCreditLine() ?? 0;
2121
}
2222

2323
public function subtractCreditLineAmount(Customer $customer, float $amount): bool

0 commit comments

Comments
 (0)