From a3e9089ae62547e1dbbbcd22c1819e156f8ba4a9 Mon Sep 17 00:00:00 2001 From: Anthony Rey Date: Wed, 29 Nov 2017 12:46:02 +1100 Subject: [PATCH] doc(http_foundation.rst): Fix code error which used create() instead of constructor method. Fix #8768. --- components/http_foundation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/http_foundation.rst b/components/http_foundation.rst index 7b56d953981..bae1a209487 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -297,7 +297,7 @@ PHP callable that is able to create an instance of your ``Request`` class:: array $server = array(), $content = null ) { - return SpecialRequest::create( + return new SpecialRequest( $query, $request, $attributes,