Format code

This commit is contained in:
李铭昕 2023-02-27 10:49:32 +08:00
parent 6a16f19f82
commit 1c180c3a5b
3 changed files with 3 additions and 4 deletions

View File

@ -118,7 +118,6 @@ class Connection extends BaseConnection implements ConnectionInterface, DbConnec
$this->rollBack(0);
$this->logger->error('Maybe you\'ve forgotten to commit or rollback the MySQL transaction.');
}
} catch (Throwable $exception) {
$this->logger->error('Rollback connection failed, caused by ' . $exception);
// Ensure that the connection must be reset the next time after broken.

View File

@ -85,7 +85,7 @@ class Client extends Server
return $this->packer->unpack((string) $response->getBody());
}
public function patch(string $uri, array $data = [], array $headers = [])
{
$response = $this->request('PATCH', $uri, [

View File

@ -58,7 +58,7 @@ class HttpClient
return $this->packer->unpack((string) $response->getBody());
}
public function put(string|UriInterface $uri, array $data = [], array $headers = [])
{
$response = $this->client->put($uri, [
@ -68,7 +68,7 @@ class HttpClient
return $this->packer->unpack((string) $response->getBody());
}
public function patch(string|UriInterface $uri, array $data = [], array $headers = [])
{
$response = $this->client->patch($uri, [