Skip to content

Commit

Permalink
Fixed build failure on SQL Server (sqlsrv)
Browse files Browse the repository at this point in the history
The regression was introduced by 2b8c40d.

Fixes #3060.
  • Loading branch information
morozov committed Nov 14, 2018
1 parent 8098c91 commit 84b8fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public function setFetchMode($fetchMode, ...$args)
}

if (isset($args[1])) {
$this->defaultFetchClassCtorArgs = (array) $args[2];
$this->defaultFetchClassCtorArgs = (array) $args[1];
}

return true;
Expand Down Expand Up @@ -370,7 +370,7 @@ public function fetchAll($fetchMode = null, ...$args)

switch ($fetchMode) {
case FetchMode::CUSTOM_OBJECT:
while (($row = $this->fetch($fetchMode, $args)) !== false) {
while (($row = $this->fetch($fetchMode, ...$args)) !== false) {
$rows[] = $row;
}
break;
Expand Down

0 comments on commit 84b8fba

Please sign in to comment.