File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class MockSession extends Session
3838 * Sets the driver as the session handler in PHP.
3939 * Extracted for easier testing.
4040 */
41- protected function setSaveHandler ()
41+ protected function setSaveHandler (): void
4242 {
4343 // session_set_save_handler($this->driver, true);
4444 }
@@ -47,7 +47,7 @@ protected function setSaveHandler()
4747 * Starts the session.
4848 * Extracted for testing reasons.
4949 */
50- protected function startSession ()
50+ protected function startSession (): void
5151 {
5252 // session_start();
5353 $ this ->setCookie ();
@@ -57,15 +57,15 @@ protected function startSession()
5757 * Takes care of setting the cookie on the client side.
5858 * Extracted for testing reasons.
5959 */
60- protected function setCookie ()
60+ protected function setCookie (): void
6161 {
6262 $ expiration = $ this ->config ->expiration === 0 ? 0 : Time::now ()->getTimestamp () + $ this ->config ->expiration ;
6363 $ this ->cookie = $ this ->cookie ->withValue (session_id ())->withExpires ($ expiration );
6464
6565 $ this ->cookies [] = $ this ->cookie ;
6666 }
6767
68- public function regenerate (bool $ destroy = false )
68+ public function regenerate (bool $ destroy = false ): void
6969 {
7070 $ this ->didRegenerate = true ;
7171 $ _SESSION ['__ci_last_regenerate ' ] = Time::now ()->getTimestamp ();
You can’t perform that action at this time.
0 commit comments