From 9244020ab5e3e750f7e76d94320b00a43a42a15d Mon Sep 17 00:00:00 2001 From: makmaoui <37940572+makmaoui@users.noreply.github.com> Date: Fri, 21 Dec 2018 21:19:44 +0100 Subject: [PATCH] Fix errors in Session methods links --- components/http_foundation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/http_foundation.rst b/components/http_foundation.rst index 8cf8762deaf..f601e85e493 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -243,10 +243,10 @@ method tells you if the request contains a session which was started in one of the previous requests. .. versionadded:: 4.1 - Using :method:`Symfony\\Component\\HttpFoundation\\Request::getSession()` + Using :method:`Symfony\\Component\\HttpFoundation\\Request::getSession` when no session has been set was deprecated in Symfony 4.1. It will throw an exception in Symfony 5.0 when the session is ``null``. Check for an existing session - first by calling :method:`Symfony\\Component\\HttpFoundation\\Request::hasSession()`. + first by calling :method:`Symfony\\Component\\HttpFoundation\\Request::hasSession`. Processing HTTP Headers ~~~~~~~~~~~~~~~~~~~~~~~