summaryrefslogtreecommitdiff
path: root/app/Statement.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-13 16:55:27 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-13 17:35:40 +0100
commit07128fd837dd5f87a960ea66f5dd86a9b856c60e (patch)
treeb6128ed0d43b4bc28fe39cf475d9a17ac941d4a2 /app/Statement.php
parent2d980a950eede9f00c2f737c1e16abf2cd2b54d6 (diff)
downloadwebtrees-07128fd837dd5f87a960ea66f5dd86a9b856c60e.tar.gz
webtrees-07128fd837dd5f87a960ea66f5dd86a9b856c60e.tar.bz2
webtrees-07128fd837dd5f87a960ea66f5dd86a9b856c60e.zip
Do not use PDO::FETCH_ASSOC
Diffstat (limited to 'app/Statement.php')
-rw-r--r--app/Statement.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Statement.php b/app/Statement.php
index 8b3f8ebe1c..5149843b88 100644
--- a/app/Statement.php
+++ b/app/Statement.php
@@ -125,15 +125,15 @@ class Statement
*
* @param int $fetch_style
*
- * @return stdClass[]|string[][]
+ * @return stdClass[]
*/
- public function fetchAll($fetch_style = PDO::FETCH_OBJ)
+ public function fetchAll()
{
if (!$this->executed) {
$this->execute();
}
- $rows = $this->pdo_statement->fetchAll($fetch_style);
+ $rows = $this->pdo_statement->fetchAll(PDO::FETCH_OBJ);
$this->closeCursor();
return $rows;