From 6c2d4bb1e0f165b47c7273b17bf8179ca3b36611 Mon Sep 17 00:00:00 2001 From: xueliu li <4785976+lixueliu@users.noreply.github.com> Date: Thu, 2 Nov 2017 18:44:20 +0800 Subject: [PATCH] Fix: ShopifyFulfillment::create/update does not return Returns the result of ShopifyFulfillment :: create / update --- src/ShopifyFulfillment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ShopifyFulfillment.php b/src/ShopifyFulfillment.php index 1c442d7..f3c6f55 100644 --- a/src/ShopifyFulfillment.php +++ b/src/ShopifyFulfillment.php @@ -30,12 +30,12 @@ public function read($id, $orderId) public function create($orderId, $data) { - $this->post($data, $this->prefix($orderId)); + return $this->post($data, $this->prefix($orderId)); } public function update($id, $orderId, $data) { - $this->put($id, $data, $this->prefix($orderId)); + return $this->put($id, $data, $this->prefix($orderId)); } protected function prefix($orderId)