diff --git a/src/db-connection/src/Connection.php b/src/db-connection/src/Connection.php index 4089c0573..3cdda647b 100644 --- a/src/db-connection/src/Connection.php +++ b/src/db-connection/src/Connection.php @@ -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. diff --git a/src/testing/src/Client.php b/src/testing/src/Client.php index e3b2f3597..dbf0e1467 100644 --- a/src/testing/src/Client.php +++ b/src/testing/src/Client.php @@ -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, [ diff --git a/src/testing/src/HttpClient.php b/src/testing/src/HttpClient.php index d58517d6d..1e6d46e20 100644 --- a/src/testing/src/HttpClient.php +++ b/src/testing/src/HttpClient.php @@ -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, [