You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(); } }
The text was updated successfully, but these errors were encountered:
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(); } }
The text was updated successfully, but these errors were encountered: