Add missing @throws annotations at the wrapper level

parent 19cc7568
......@@ -1010,6 +1010,9 @@ class Connection implements DriverConnection
return new Result($result, $this);
}
/**
* @throws DBALException
*/
public function query(string $sql): DriverResult
{
$connection = $this->getWrappedConnection();
......@@ -1078,6 +1081,9 @@ class Connection implements DriverConnection
}
}
/**
* @throws DBALException
*/
public function exec(string $statement): int
{
$connection = $this->getWrappedConnection();
......
......@@ -220,6 +220,8 @@ class PrimaryReadReplicaConnection extends Connection
* @param string $connectionName
*
* @return DriverConnection
*
* @throws DBALException
*/
protected function connectTo($connectionName)
{
......
......@@ -53,6 +53,8 @@ final class Result implements ResultInterface
/**
* {@inheritDoc}
*
* @throws DBALException
*/
public function fetchOne()
{
......
......@@ -65,6 +65,8 @@ class Statement implements DriverStatement
*
* @param string $sql The SQL of the statement.
* @param Connection $conn The connection on which the statement should be executed.
*
* @throws DBALException
*/
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