Unverified Commit 6d673d77 authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3839 from morozov/execute-query-types-type

Added the missing argument type to Connection::executeQuery($types)
parents 7027ec99 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);
} }
......
...@@ -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);
......
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