Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8339a7b

Browse filesBrowse files
committed
minor #25878 [HttpFoundation] Added "null" type on Request::create docblock (keradus)
This PR was squashed before being merged into the 2.7 branch (closes #25878). Discussion ---------- [HttpFoundation] Added "null" type on Request::create docblock | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | n/a | Fixed tickets | n/a | License | MIT | Doc PR | n/a Continuation of #24902 and #25875 Commits ------- b18f9e7 [HttpFoundation] Added "null" type on Request::create docblock
2 parents e395e56 + b18f9e7 commit 8339a7b
Copy full SHA for 8339a7b

File tree

Expand file treeCollapse file tree

1 file changed

+22
-22
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+22
-22
lines changed

‎src/Symfony/Component/HttpFoundation/Request.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Request.php
+22-22Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Request
130130
public $headers;
131131

132132
/**
133-
* @var string|resource
133+
* @var string|resource|false|null
134134
*/
135135
protected $content;
136136

@@ -207,13 +207,13 @@ class Request
207207
protected static $requestFactory;
208208

209209
/**
210-
* @param array $query The GET parameters
211-
* @param array $request The POST parameters
212-
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
213-
* @param array $cookies The COOKIE parameters
214-
* @param array $files The FILES parameters
215-
* @param array $server The SERVER parameters
216-
* @param string|resource $content The raw body data
210+
* @param array $query The GET parameters
211+
* @param array $request The POST parameters
212+
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
213+
* @param array $cookies The COOKIE parameters
214+
* @param array $files The FILES parameters
215+
* @param array $server The SERVER parameters
216+
* @param string|resource|null $content The raw body data
217217
*/
218218
public function __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null)
219219
{
@@ -225,13 +225,13 @@ public function __construct(array $query = array(), array $request = array(), ar
225225
*
226226
* This method also re-initializes all properties.
227227
*
228-
* @param array $query The GET parameters
229-
* @param array $request The POST parameters
230-
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
231-
* @param array $cookies The COOKIE parameters
232-
* @param array $files The FILES parameters
233-
* @param array $server The SERVER parameters
234-
* @param string|resource $content The raw body data
228+
* @param array $query The GET parameters
229+
* @param array $request The POST parameters
230+
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
231+
* @param array $cookies The COOKIE parameters
232+
* @param array $files The FILES parameters
233+
* @param array $server The SERVER parameters
234+
* @param string|resource|null $content The raw body data
235235
*/
236236
public function initialize(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null)
237237
{
@@ -294,13 +294,13 @@ public static function createFromGlobals()
294294
* The information contained in the URI always take precedence
295295
* over the other information (server and parameters).
296296
*
297-
* @param string $uri The URI
298-
* @param string $method The HTTP method
299-
* @param array $parameters The query (GET) or request (POST) parameters
300-
* @param array $cookies The request cookies ($_COOKIE)
301-
* @param array $files The request files ($_FILES)
302-
* @param array $server The server parameters ($_SERVER)
303-
* @param string|resource $content The raw body data
297+
* @param string $uri The URI
298+
* @param string $method The HTTP method
299+
* @param array $parameters The query (GET) or request (POST) parameters
300+
* @param array $cookies The request cookies ($_COOKIE)
301+
* @param array $files The request files ($_FILES)
302+
* @param array $server The server parameters ($_SERVER)
303+
* @param string|resource|null $content The raw body data
304304
*
305305
* @return static
306306
*/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.