Add missing @throws annotations at the wrapper level

parent 19cc7568
...@@ -1010,6 +1010,9 @@ class Connection implements DriverConnection ...@@ -1010,6 +1010,9 @@ class Connection implements DriverConnection
return new Result($result, $this); return new Result($result, $this);
} }
/**
* @throws DBALException
*/
public function query(string $sql): DriverResult public function query(string $sql): DriverResult
{ {
$connection = $this->getWrappedConnection(); $connection = $this->getWrappedConnection();
...@@ -1078,6 +1081,9 @@ class Connection implements DriverConnection ...@@ -1078,6 +1081,9 @@ class Connection implements DriverConnection
} }
} }
/**
* @throws DBALException
*/
public function exec(string $statement): int public function exec(string $statement): int
{ {
$connection = $this->getWrappedConnection(); $connection = $this->getWrappedConnection();
......
...@@ -220,6 +220,8 @@ class PrimaryReadReplicaConnection extends Connection ...@@ -220,6 +220,8 @@ class PrimaryReadReplicaConnection extends Connection
* @param string $connectionName * @param string $connectionName
* *
* @return DriverConnection * @return DriverConnection
*
* @throws DBALException
*/ */
protected function connectTo($connectionName) protected function connectTo($connectionName)
{ {
......
...@@ -53,6 +53,8 @@ final class Result implements ResultInterface ...@@ -53,6 +53,8 @@ final class Result implements ResultInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*
* @throws DBALException
*/ */
public function fetchOne() public function fetchOne()
{ {
......
...@@ -65,6 +65,8 @@ class Statement implements DriverStatement ...@@ -65,6 +65,8 @@ class Statement implements DriverStatement
* *
* @param string $sql The SQL of the statement. * @param string $sql The SQL of the statement.
* @param Connection $conn The connection on which the statement should be executed. * @param Connection $conn The connection on which the statement should be executed.
*
* @throws DBALException
*/ */
public function __construct($sql, Connection $conn) public function __construct($sql, Connection $conn)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment