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
8c9c7005
Unverified
Commit
8c9c7005
authored
Jan 21, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the missing argument type to Connection::executeQuery($type)
parent
9728d990
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
Connection.php
lib/Doctrine/DBAL/Connection.php
+6
-2
Connection.php
lib/Doctrine/DBAL/Portability/Connection.php
+6
-2
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
8c9c7005
...
@@ -788,8 +788,12 @@ class Connection implements DriverConnection
...
@@ -788,8 +788,12 @@ class Connection implements DriverConnection
*
*
* @throws DBALException
* @throws DBALException
*/
*/
public
function
executeQuery
(
string
$query
,
array
$params
=
[],
$types
=
[],
?
QueryCacheProfile
$qcp
=
null
)
:
ResultStatement
public
function
executeQuery
(
{
string
$query
,
array
$params
=
[],
array
$types
=
[],
?
QueryCacheProfile
$qcp
=
null
)
:
ResultStatement
{
if
(
$qcp
!==
null
)
{
if
(
$qcp
!==
null
)
{
return
$this
->
executeCacheQuery
(
$query
,
$params
,
$types
,
$qcp
);
return
$this
->
executeCacheQuery
(
$query
,
$params
,
$types
,
$qcp
);
}
}
...
...
lib/Doctrine/DBAL/Portability/Connection.php
View file @
8c9c7005
...
@@ -95,8 +95,12 @@ class Connection extends \Doctrine\DBAL\Connection
...
@@ -95,8 +95,12 @@ class Connection extends \Doctrine\DBAL\Connection
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
executeQuery
(
string
$query
,
array
$params
=
[],
$types
=
[],
?
QueryCacheProfile
$qcp
=
null
)
:
ResultStatement
public
function
executeQuery
(
{
string
$query
,
array
$params
=
[],
array
$types
=
[],
?
QueryCacheProfile
$qcp
=
null
)
:
ResultStatement
{
$stmt
=
new
Statement
(
parent
::
executeQuery
(
$query
,
$params
,
$types
,
$qcp
),
$this
);
$stmt
=
new
Statement
(
parent
::
executeQuery
(
$query
,
$params
,
$types
,
$qcp
),
$this
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
$stmt
->
setFetchMode
(
$this
->
defaultFetchMode
);
...
...
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