Skip to content

Commit a3fe637

Browse files
author
Reindert
authored
phpDocumentor Return tag must be an int
Because count() gives an int, hasShipment returns an int. Now i can't do this: ```if ($view->getOrder()->hasShipments() === true) {```
1 parent 6f25236 commit a3fe637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ public function hasInvoices()
17801780
/**
17811781
* Check order shipments availability
17821782
*
1783-
* @return bool
1783+
* @return int
17841784
*/
17851785
public function hasShipments()
17861786
{

0 commit comments

Comments
 (0)