Skip to content

Commit c5a4a60

Browse files
ENGCOM-2194: Fix docBlock for hasInvoices(), hasShipments(), hasCreditmemos() #16554
- Merge Pull Request #16554 from comwrap/magento2:docBlock-order - Merged commits: 1. 3a4a238 2. fa6e2f1
2 parents aa6b899 + fa6e2f1 commit c5a4a60

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
@@ -1787,7 +1787,7 @@ public function getTracksCollection()
17871787
*/
17881788
public function hasInvoices()
17891789
{
1790-
return $this->getInvoiceCollection()->count();
1790+
return boolval($this->getInvoiceCollection()->count());
17911791
}
17921792

17931793
/**
@@ -1797,7 +1797,7 @@ public function hasInvoices()
17971797
*/
17981798
public function hasShipments()
17991799
{
1800-
return $this->getShipmentsCollection()->count();
1800+
return boolval($this->getShipmentsCollection()->count());
18011801
}
18021802

18031803
/**
@@ -1807,7 +1807,7 @@ public function hasShipments()
18071807
*/
18081808
public function hasCreditmemos()
18091809
{
1810-
return $this->getCreditmemosCollection()->count();
1810+
return boolval($this->getCreditmemosCollection()->count());
18111811
}
18121812

18131813
/**

0 commit comments

Comments
 (0)