File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Sales/Model Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1770,7 +1770,7 @@ public function getTracksCollection()
17701770 */
17711771 public function hasInvoices ()
17721772 {
1773- return $ this ->getInvoiceCollection ()->count ();
1773+ return boolval ( $ this ->getInvoiceCollection ()->count () );
17741774 }
17751775
17761776 /**
@@ -1780,7 +1780,7 @@ public function hasInvoices()
17801780 */
17811781 public function hasShipments ()
17821782 {
1783- return $ this ->getShipmentsCollection ()->count ();
1783+ return boolval ( $ this ->getShipmentsCollection ()->count () );
17841784 }
17851785
17861786 /**
@@ -1790,7 +1790,7 @@ public function hasShipments()
17901790 */
17911791 public function hasCreditmemos ()
17921792 {
1793- return $ this ->getCreditmemosCollection ()->count ();
1793+ return boolval ( $ this ->getCreditmemosCollection ()->count () );
17941794 }
17951795
17961796 /**
You can’t perform that action at this time.
0 commit comments