Neither PDOStatement::closeCursor() nor Result::free() can throw an exception

parent bc7558b5
......@@ -90,11 +90,7 @@ final class Result implements ResultInterface
public function free(): void
{
try {
$this->statement->closeCursor();
} catch (PDOException $exception) {
throw Exception::new($exception);
}
$this->statement->closeCursor();
}
/**
......
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