Skip to content

Commit 7170068

Browse files
authored
Merge pull request #70 from codebarista/master
#69 New fetch() and fetchAll() method signatures
2 parents 6d0c9cb + 3175284 commit 7170068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Statement.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) {
211211
*
212212
* @SuppressWarnings("PHPMD.StaticAccess")
213213
*/
214-
public function fetch($fetchMode = null) {
214+
public function fetch($fetchMode = NULL, $cursorOrientation = \PDO::FETCH_ORI_NEXT, $cursorOffset = 0) {
215215
$fetchMode = empty($fetchMode) ? $this->fetchMode : $fetchMode;
216216
Assertions::assertSupportedFetchMode($fetchMode);
217217

@@ -221,7 +221,7 @@ public function fetch($fetchMode = null) {
221221
/**
222222
* {@inheritdoc}
223223
*/
224-
public function fetchAll($fetchMode = null) {
224+
public function fetchAll($fetchMode = NULL, $fetchArgument = NULL, $ctorArgs = NULL) {
225225
$result = [];
226226
$fetchMode = empty($fetchMode) ? $this->fetchMode : $fetchMode;
227227

@@ -254,4 +254,4 @@ public function getIterator() {
254254
public function getId() {
255255
return $this->id;
256256
}
257-
}
257+
}

0 commit comments

Comments
 (0)