Skip to content

Commit a0d6923

Browse files
Merge branch '5.0' into 5.1
* 5.0: Handle fetch mode deprecation of DBAL 2.11.
2 parents 030fee4 + 712ed87 commit a0d6923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Store/PdoStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function exists(Key $key)
193193
$stmt->bindValue(':token', $this->getUniqueToken($key));
194194
$stmt->execute();
195195

196-
return (bool) $stmt->fetchColumn();
196+
return (bool) (method_exists($stmt, 'fetchOne') ? $stmt->fetchOne() : $stmt->fetchColumn());
197197
}
198198

199199
/**

0 commit comments

Comments
 (0)