File tree 1 file changed +4
-4
lines changed
app/code/Magento/Sales/Model
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1774,17 +1774,17 @@ 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
/**
1781
1781
* Check order shipments availability
1782
1782
*
1783
- * @return int
1783
+ * @return bool
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