diff --git a/src/Session.php b/src/Session.php index f5c5412..753f18a 100644 --- a/src/Session.php +++ b/src/Session.php @@ -83,6 +83,13 @@ public function start(): void } } + public function autoStart(bool $forWrite): void + { + if (!$this->fakeMode) { + $this->originalSession->autoStart($forWrite); + } + } + public function isStarted(): bool { if (!$this->fakeMode) { diff --git a/src/SessionSection.php b/src/SessionSection.php index b23c9ed..326b083 100644 --- a/src/SessionSection.php +++ b/src/SessionSection.php @@ -82,7 +82,7 @@ public function removeExpiration($variables = NULL): void { } - public function remove(): void + public function remove($name = NULL): void { $this->data = []; }