From a3b08d67dd03fef47a5c2159111b2eea6259725a Mon Sep 17 00:00:00 2001 From: Serhii Polishchuk Date: Thu, 19 Oct 2017 18:34:57 +0300 Subject: [PATCH] Remove deprecated proxy argument --- create_framework/http_foundation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_framework/http_foundation.rst b/create_framework/http_foundation.rst index 85c8c2dfb10..08cb0d6d836 100644 --- a/create_framework/http_foundation.rst +++ b/create_framework/http_foundation.rst @@ -258,7 +258,7 @@ explicitly trust your reverse proxies by calling ``setTrustedProxies()``:: Request::setTrustedProxies(array('10.0.0.1')); - if ($myIp === $request->getClientIp(true)) { + if ($myIp === $request->getClientIp()) { // the client is a known one, so give it some more privilege }