diff --git a/app/code/Magento/Sales/Model/Order.php b/app/code/Magento/Sales/Model/Order.php index 7372d9715c725..53e5815f2ddae 100644 --- a/app/code/Magento/Sales/Model/Order.php +++ b/app/code/Magento/Sales/Model/Order.php @@ -1792,7 +1792,7 @@ public function getTracksCollection() */ public function hasInvoices() { - return (bool)$this->getInvoiceCollection()->count(); + return boolval($this->getInvoiceCollection()->count()); } /** @@ -1802,7 +1802,7 @@ public function hasInvoices() */ public function hasShipments() { - return (bool)$this->getShipmentsCollection()->count(); + return boolval($this->getShipmentsCollection()->count()); } /** @@ -1812,7 +1812,7 @@ public function hasShipments() */ public function hasCreditmemos() { - return (bool)$this->getCreditmemosCollection()->count(); + return boolval($this->getCreditmemosCollection()->count()); } /**