Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
7f5506d7
Unverified
Commit
7f5506d7
authored
Jul 01, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing @throws annotations at the wrapper level
parent
19cc7568
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
Connection.php
src/Connection.php
+6
-0
PrimaryReadReplicaConnection.php
src/Connections/PrimaryReadReplicaConnection.php
+2
-0
Result.php
src/Result.php
+2
-0
Statement.php
src/Statement.php
+2
-0
No files found.
src/Connection.php
View file @
7f5506d7
...
@@ -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
();
...
...
src/Connections/PrimaryReadReplicaConnection.php
View file @
7f5506d7
...
@@ -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
)
{
{
...
...
src/Result.php
View file @
7f5506d7
...
@@ -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
()
{
{
...
...
src/Statement.php
View file @
7f5506d7
...
@@ -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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment