Skip to content

Commit 2db8d93

Browse files
ENGCOM-2417: [Backport] Fix docBlock for hasInvoices(), hasShipments(), hasCreditmemos() #16923
- Merge Pull Request #16923 from eduard13/magento2:2.1-develop-PR-port-16554 - Merged commits: 1. cf759ec 2. 8e8bcfa
2 parents bfbdfa5 + 8e8bcfa commit 2db8d93

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)