Skip to content

Commit a0dd54f

Browse files
authored
Merge pull request #6 from artdeoich/patch-2
Compatibility to php 8.0 and doctrine dbal > 2.10
2 parents a0391d2 + 8960f86 commit a0dd54f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Drivers/Query/PdoQuery.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,9 @@ protected function fetch($db, $query, array $args = array())
148148
$stmt->bindValue($arg, $val, is_int($val) ? \PDO::PARAM_INT : \PDO::PARAM_STR);
149149
}
150150

151-
$stmt->execute();
152-
$return = $stmt->fetchAll(\PDO::FETCH_ASSOC);
151+
$return = $stmt->executeQuery();
153152

154-
return $return;
153+
return $return->fetchAllAssociative();
155154
}
156155
}
157156

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
}
2121
],
2222
"require": {
23-
"php": ">=5.3.9",
23+
"php": "^8.0",
2424
"symfony/framework-bundle": "~2.7|~3.0|^4.0|^5.0",
2525
"symfony/translation": "~2.7|~3.0|^4.0|^5.0",
26-
"predis/predis": "^1.1"
26+
"predis/predis": "^1.1",
27+
"doctrine/dbal": ">2.10|^3.0"
2728
},
2829
"require-dev": {
2930
"symfony/phpunit-bridge": "~2.7|~3.0|^4.0|^5.0",

0 commit comments

Comments
 (0)