Skip to content

Commit faf6dcb

Browse files
authored
Fix missingType.return errors
1 parent bc72130 commit faf6dcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

system/Test/Mock/MockSession.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)