@@ -96,7 +96,7 @@ public function destroy($sessionId)
96
96
$ stmt ->bindParam (':id ' , $ sessionId , \PDO ::PARAM_STR );
97
97
$ stmt ->execute ();
98
98
} catch (\Exception $ e ) {
99
- throw new \RuntimeException (sprintf ( 'Exception was thrown when trying to delete a session: %s. ' , $ e ->getMessage () ), 0 , $ e );
99
+ throw new \RuntimeException ('Exception was thrown when trying to delete a session: ' . $ e ->getMessage (), 0 , $ e );
100
100
}
101
101
102
102
return true ;
@@ -115,7 +115,7 @@ public function gc($maxlifetime)
115
115
$ stmt ->bindValue (':time ' , time () - $ maxlifetime , \PDO ::PARAM_INT );
116
116
$ stmt ->execute ();
117
117
} catch (\Exception $ e ) {
118
- throw new \RuntimeException (sprintf ( 'Exception was thrown when trying to delete expired sessions: %s. ' , $ e ->getMessage () ), 0 , $ e );
118
+ throw new \RuntimeException ('Exception was thrown when trying to delete expired sessions: ' . $ e ->getMessage (), 0 , $ e );
119
119
}
120
120
121
121
return true ;
@@ -142,7 +142,7 @@ public function read($sessionId)
142
142
143
143
return '' ;
144
144
} catch (\Exception $ e ) {
145
- throw new \RuntimeException (sprintf ( 'Exception was thrown when trying to read the session data: %s. ' , $ e ->getMessage () ), 0 , $ e );
145
+ throw new \RuntimeException ('Exception was thrown when trying to read the session data: ' . $ e ->getMessage (), 0 , $ e );
146
146
}
147
147
}
148
148
@@ -212,7 +212,7 @@ public function write($sessionId, $data)
212
212
}
213
213
}
214
214
} catch (\Exception $ e ) {
215
- throw new \RuntimeException (sprintf ( 'Exception was thrown when trying to write the session data: %s. ' , $ e ->getMessage () ), 0 , $ e );
215
+ throw new \RuntimeException ('Exception was thrown when trying to write the session data: ' . $ e ->getMessage (), 0 , $ e );
216
216
}
217
217
218
218
return true ;
0 commit comments