Skip to content

Commit 6d3f819

Browse files
author
Stanislav Idolov
authored
ENGCOM-2417: [Backport] Fix docBlock for hasInvoices(), hasShipments(), hasCreditmemos() #16923
2 parents bfbdfa5 + 2db8d93 commit 6d3f819

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Sales/Model/Order.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)