Skip to content

Commit 55b1ae7

Browse files
committed
Handle fetch mode deprecation of DBAL 2.11.
1 parent a661719 commit 55b1ae7

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
@@ -203,7 +203,7 @@ public function exists(Key $key)
203203
$stmt->bindValue(':token', $this->getUniqueToken($key));
204204
$stmt->execute();
205205

206-
return (bool) $stmt->fetchColumn();
206+
return (bool) (method_exists($stmt, 'fetchOne') ? $stmt->fetchOne() : $stmt->fetchColumn());
207207
}
208208

209209
/**

0 commit comments

Comments
 (0)