Commit d55b9fbb authored by Nicolas Grekas's avatar Nicolas Grekas

fix setFetchMode() signature inconsistencies

parent baf30aeb
...@@ -148,7 +148,7 @@ class DB2Statement implements \IteratorAggregate, Statement ...@@ -148,7 +148,7 @@ class DB2Statement implements \IteratorAggregate, Statement
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function setFetchMode($fetchStyle = \PDO::FETCH_BOTH, $arg2 = null, $arg3 = null) public function setFetchMode($fetchStyle, $arg2 = null, $arg3 = null)
{ {
$this->_defaultFetchStyle = $fetchStyle; $this->_defaultFetchStyle = $fetchStyle;
} }
......
...@@ -326,7 +326,7 @@ class MysqliStatement implements \IteratorAggregate, Statement ...@@ -326,7 +326,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function setFetchMode($fetchMode = PDO::FETCH_BOTH, $arg2 = null, $arg3 = null) public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null)
{ {
$this->_defaultFetchStyle = $fetchMode; $this->_defaultFetchStyle = $fetchMode;
} }
......
...@@ -190,7 +190,7 @@ class OCI8Statement implements \IteratorAggregate, Statement ...@@ -190,7 +190,7 @@ class OCI8Statement implements \IteratorAggregate, Statement
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function setFetchMode($fetchStyle = PDO::FETCH_BOTH, $arg2 = null, $arg3 = null) public function setFetchMode($fetchStyle, $arg2 = null, $arg3 = null)
{ {
$this->_defaultFetchStyle = $fetchStyle; $this->_defaultFetchStyle = $fetchStyle;
} }
......
...@@ -175,7 +175,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement ...@@ -175,7 +175,7 @@ class SQLSrvStatement implements IteratorAggregate, Statement
} }
} }
public function setFetchMode($fetchStyle = PDO::FETCH_BOTH, $arg2 = null, $arg3 = null) public function setFetchMode($fetchStyle, $arg2 = null, $arg3 = null)
{ {
$this->defaultFetchStyle = $fetchStyle; $this->defaultFetchStyle = $fetchStyle;
} }
......
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