We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5852f14 + e495e72 commit 4bc896bCopy full SHA for 4bc896b
src/Synolia/Bundle/CreditLineBundle/Manager/DbCustomerCreditLineManager.php
@@ -17,7 +17,7 @@ public function __construct(DoctrineHelper $doctrineHelper)
17
public function getCreditLineAmount(Customer $customer): float
18
{
19
// @phpstan-ignore-next-line
20
- return $customer->getSyCreditLine();
+ return $customer->getSyCreditLine() ?? 0;
21
}
22
23
public function subtractCreditLineAmount(Customer $customer, float $amount): bool
0 commit comments