Skip to content

Commit

Permalink
Merge pull request #3839 from morozov/execute-query-types-type
Browse files Browse the repository at this point in the history
Added the missing argument type to Connection::executeQuery($types)
  • Loading branch information
morozov committed Jan 22, 2020
2 parents 7027ec9 + 8c9c700 commit 6d673d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lib/Doctrine/DBAL/Connection.php
Expand Up @@ -788,8 +788,12 @@ public function prepare(string $sql) : DriverStatement
*
* @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) {
return $this->executeCacheQuery($query, $params, $types, $qcp);
}
Expand Down
8 changes: 6 additions & 2 deletions lib/Doctrine/DBAL/Portability/Connection.php
Expand Up @@ -95,8 +95,12 @@ public function getFetchCase() : ?int
/**
* {@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->setFetchMode($this->defaultFetchMode);

Expand Down

0 comments on commit 6d673d7

Please sign in to comment.