Fixed build failure on SQL Server (sqlsrv)

The regression was introduced by 2b8c40d267b4ac699ea878dcca07332e1697978c.

Fixes #3060.
parent d9b30595
......@@ -320,7 +320,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement
}
if (isset($args[1])) {
$this->defaultFetchClassCtorArgs = (array) $args[2];
$this->defaultFetchClassCtorArgs = (array) $args[1];
}
return true;
......@@ -381,7 +381,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement
switch ($fetchMode) {
case FetchMode::CUSTOM_OBJECT:
while (($row = $this->fetch($fetchMode, $args)) !== false) {
while (($row = $this->fetch($fetchMode, ...$args)) !== false) {
$rows[] = $row;
}
break;
......
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