From 207bdda237f442d849b2ff8184347a825fecd90d Mon Sep 17 00:00:00 2001 From: Manuel Reinhard Date: Wed, 15 Nov 2023 10:12:36 +0100 Subject: [PATCH] Simplify condition --- src/QrBill.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QrBill.php b/src/QrBill.php index d5fb50e..477face 100644 --- a/src/QrBill.php +++ b/src/QrBill.php @@ -202,7 +202,7 @@ private function getQrCodeContent(): string private function getPossibleEmptyLine(): ?EmptyLine { if ($this->getAlternativeSchemes()) { - if (null === $this->getAdditionalInformation() || null === $this->getAdditionalInformation()->getBillInformation()) { + if (null === $this->getAdditionalInformation()?->getBillInformation()) { return new EmptyLine(); } }