-
Notifications
You must be signed in to change notification settings - Fork 11
Description
fix return type please in RecipientAccountGateway for update method
public function update($recipientId, $accountId, $attrib) { $response = $this->_http->patch('/v1/recipients/' . $recipientId . '/accounts/' . $accountId, $attrib); if ($response['ok']) { return Recipient::factory($response['account']); } else if ($response['errors']){ throw new Exception\Standard($response['errors']); } else { throw new Exception\DownForMaintenance(); } }
correct version:
public function update($recipientId, $accountId, $attrib) { $response = $this->_http->patch('/v1/recipients/' . $recipientId . '/accounts/' . $accountId, $attrib); if ($response['ok']) { return RecipientAccount::factory($response['account']); // fix } else if ($response['errors']){ throw new Exception\Standard($response['errors']); } else { throw new Exception\DownForMaintenance(); } }