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()
1770
1770
*/
1771
1771
public function hasInvoices ()
1772
1772
{
1773
- return $ this ->getInvoiceCollection ()->count ();
1773
+ return boolval ( $ this ->getInvoiceCollection ()->count () );
1774
1774
}
1775
1775
1776
1776
/**
@@ -1780,7 +1780,7 @@ public function hasInvoices()
1780
1780
*/
1781
1781
public function hasShipments ()
1782
1782
{
1783
- return $ this ->getShipmentsCollection ()->count ();
1783
+ return boolval ( $ this ->getShipmentsCollection ()->count () );
1784
1784
}
1785
1785
1786
1786
/**
@@ -1790,7 +1790,7 @@ public function hasShipments()
1790
1790
*/
1791
1791
public function hasCreditmemos ()
1792
1792
{
1793
- return $ this ->getCreditmemosCollection ()->count ();
1793
+ return boolval ( $ this ->getCreditmemosCollection ()->count () );
1794
1794
}
1795
1795
1796
1796
/**
You can’t perform that action at this time.
0 commit comments