From 29a024acb0bf43e920e28aa080ff141123105fbb Mon Sep 17 00:00:00 2001 From: Harry van der Valk Date: Tue, 16 Nov 2021 17:06:38 +0100 Subject: [PATCH] Change $requestStack to $this->requestStack Within the __invoke() method a call was made to $requestStack. This update will use the private $requestStack property as defined in the SessionRequestProcessor class. --- logging/processors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/processors.rst b/logging/processors.rst index 3c4faacda5f..fbc7d14c151 100644 --- a/logging/processors.rst +++ b/logging/processors.rst @@ -35,7 +35,7 @@ using a processor:: public function __invoke(array $record) { try { - $session = $requestStack->getSession(); + $session = $this->requestStack->getSession(); } catch (SessionNotFoundException $e) { return; }