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 @@ -1774,7 +1774,7 @@ public function getTracksCollection()
1774
1774
*/
1775
1775
public function hasInvoices ()
1776
1776
{
1777
- return $ this ->getInvoiceCollection ()->count ();
1777
+ return ( bool ) $ this ->getInvoiceCollection ()->count ();
1778
1778
}
1779
1779
1780
1780
/**
@@ -1784,7 +1784,7 @@ public function hasInvoices()
1784
1784
*/
1785
1785
public function hasShipments ()
1786
1786
{
1787
- return $ this ->getShipmentsCollection ()->count ();
1787
+ return ( bool ) $ this ->getShipmentsCollection ()->count ();
1788
1788
}
1789
1789
1790
1790
/**
@@ -1794,7 +1794,7 @@ public function hasShipments()
1794
1794
*/
1795
1795
public function hasCreditmemos ()
1796
1796
{
1797
- return $ this ->getCreditmemosCollection ()->count ();
1797
+ return ( bool ) $ this ->getCreditmemosCollection ()->count ();
1798
1798
}
1799
1799
1800
1800
/**
You can’t perform that action at this time.
0 commit comments