@@ -64,7 +64,7 @@ public function loadTokenBySeries($series)
6464 $ sql = 'SELECT class, username, value, lastUsed AS last_used '
6565 .' FROM rememberme_token WHERE series=:series ' ;
6666 $ paramValues = ['series ' => $ series ];
67- $ paramTypes = ['series ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ];
67+ $ paramTypes = ['series ' => ParameterType::STRING ];
6868 $ stmt = $ this ->conn ->executeQuery ($ sql , $ paramValues , $ paramTypes );
6969 $ row = $ stmt instanceof Result || $ stmt instanceof DriverResult ? $ stmt ->fetchAssociative () : $ stmt ->fetch (\PDO ::FETCH_ASSOC );
7070
@@ -82,7 +82,7 @@ public function deleteTokenBySeries($series)
8282 {
8383 $ sql = 'DELETE FROM rememberme_token WHERE series=:series ' ;
8484 $ paramValues = ['series ' => $ series ];
85- $ paramTypes = ['series ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ];
85+ $ paramTypes = ['series ' => ParameterType::STRING ];
8686 if (method_exists ($ this ->conn , 'executeStatement ' )) {
8787 $ this ->conn ->executeStatement ($ sql , $ paramValues , $ paramTypes );
8888 } else {
@@ -103,9 +103,9 @@ public function updateToken($series, $tokenValue, \DateTime $lastUsed)
103103 'series ' => $ series ,
104104 ];
105105 $ paramTypes = [
106- 'value ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ,
106+ 'value ' => ParameterType::STRING ,
107107 'lastUsed ' => self ::$ useDeprecatedConstants ? Type::DATETIME : Types::DATETIME_MUTABLE ,
108- 'series ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ,
108+ 'series ' => ParameterType::STRING ,
109109 ];
110110 if (method_exists ($ this ->conn , 'executeStatement ' )) {
111111 $ updated = $ this ->conn ->executeStatement ($ sql , $ paramValues , $ paramTypes );
@@ -133,10 +133,10 @@ public function createNewToken(PersistentTokenInterface $token)
133133 'lastUsed ' => $ token ->getLastUsed (),
134134 ];
135135 $ paramTypes = [
136- 'class ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ,
137- 'username ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ,
138- 'series ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ,
139- 'value ' => class_exists ( ParameterType::class) ? ParameterType:: STRING : \ PDO :: PARAM_STR ,
136+ 'class ' => ParameterType::STRING ,
137+ 'username ' => ParameterType::STRING ,
138+ 'series ' => ParameterType::STRING ,
139+ 'value ' => ParameterType::STRING ,
140140 'lastUsed ' => self ::$ useDeprecatedConstants ? Type::DATETIME : Types::DATETIME_MUTABLE ,
141141 ];
142142 if (method_exists ($ this ->conn , 'executeStatement ' )) {
0 commit comments