@@ -66,7 +66,7 @@ class PdoAdapter extends AbstractAdapter implements PruneableInterface
6666 * @throws InvalidArgumentException When PDO error mode is not PDO::ERRMODE_EXCEPTION
6767 * @throws InvalidArgumentException When namespace contains invalid characters
6868 */
69- public function __construct ($ connOrDsn ,string $ namespace ='' ,int $ defaultLifetime =0 ,array $ options = [],MarshallerInterface $ marshaller =null )
69+ public function __construct (\ PDO | Connection | string $ connOrDsn ,string $ namespace ='' ,int $ defaultLifetime =0 ,array $ options = [],MarshallerInterface $ marshaller =null )
7070 {
7171if (isset ($ namespace [0 ]) &&preg_match ('#[^-+.A-Za-z0-9]# ' ,$ namespace ,$ match )) {
7272throw new InvalidArgumentException (sprintf ('Namespace contains "%s" but only characters in [-+.A-Za-z0-9] are allowed. ' ,$ match [0 ]));
@@ -259,7 +259,7 @@ protected function doFetch(array $ids)
259259/**
260260 * {@inheritdoc}
261261 */
262- protected function doHave (string $ id )
262+ protected function doHave (mixed $ id )
263263 {
264264$ sql ="SELECT 1 FROM $ this ->table WHERE $ this ->idCol = :id AND ( $ this ->lifetimeCol IS NULL OR $ this ->lifetimeCol + $ this ->timeCol > :time) " ;
265265$ stmt =$ this ->getConnection ()->prepare ($ sql );