From c5a6fb83033e64db8bbc651425e00e68d2b2f54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kud=C4=9Blka?= Date: Thu, 30 Dec 2021 10:20:37 +0100 Subject: [PATCH 1/2] Update Session.php --- src/Session.php | 7 +++++++ 1 file changed, 7 insertions(+) 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) { From 04238ac799e8c0c96694d3a058aae5e163a18439 Mon Sep 17 00:00:00 2001 From: Korca Date: Mon, 3 Jan 2022 17:05:34 +0100 Subject: [PATCH 2/2] Update SessionSection Declaration of Kdyby\FakeSession\SessionSection::remove(): void should be compatible with Nette\Http\SessionSection::remove($name = NULL): void because of update to nette 3.1 --- src/SessionSection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []; }