Skip to content

Commit c53fb6d

Browse files
committed
MAGETWO-35067: Fatal error on creating shipment for an order
1 parent 0c03986 commit c53fb6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Sales/Api/Data/ShipmentInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public function getComments();
253253
* @param \Magento\Sales\Api\Data\ShipmentCommentInterface[] $comments
254254
* @return $this
255255
*/
256-
public function setComments(array $comments = null);
256+
public function setComments($comments = null);
257257

258258
/**
259259
* Sets the store ID for the shipment.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ public function getComments()
733733
* @param \Magento\Sales\Api\Data\ShipmentCommentInterface[] $comments
734734
* @return $this
735735
*/
736-
public function setComments(array $comments = null)
736+
public function setComments($comments = null)
737737
{
738738
return $this->setData(ShipmentInterface::COMMENTS, $comments);
739739
}

0 commit comments

Comments
 (0)