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 doctrine#3060.
  • Loading branch information
morozov committed Feb 6, 2019
1 parent d3a4974 commit e5f3a02
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 @@ -318,7 +318,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 @@ -379,7 +379,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 e5f3a02

Please sign in to comment.