diff --git a/src/Storage/SessionStorage.php b/src/Storage/SessionStorage.php index 5f488f9..554ae3c 100644 --- a/src/Storage/SessionStorage.php +++ b/src/Storage/SessionStorage.php @@ -59,7 +59,7 @@ private function getSession(): SessionInterface try { return $this->requestStack->getSession(); } catch (SessionNotFoundException $e) { - throw new StorageException($e->getMessage(), 0, $e); + throw new StorageException(message: $e->getMessage(), previous: $e); } } }