We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f457bef commit 13afb8cCopy full SHA for 13afb8c
src/JSONDB/QueryResult.php
@@ -261,7 +261,7 @@ public function offsetUnset($offset)
261
/**
262
* Fetch for results
263
* @param int $mode The fetch mode
264
- * @return array|QueryResultObject|null
+ * @return array|QueryResultObject|bool
265
* @throws Exception
266
*/
267
public function fetch($mode = NULL)
@@ -276,7 +276,7 @@ public function fetch($mode = NULL)
276
++$this->key;
277
return $return;
278
}
279
- return NULL;
+ return FALSE;
280
} else {
281
throw new Exception("JSONDB Query Result Error: Can't fetch for results without execute the query.");
282
0 commit comments