[HttpFoundation] Added "null" type on Request::create docblock
This commit is contained in:
parent
44a03b1017
commit
b18f9e76a5
@ -130,7 +130,7 @@ class Request
|
|||||||
public $headers;
|
public $headers;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string|resource
|
* @var string|resource|false|null
|
||||||
*/
|
*/
|
||||||
protected $content;
|
protected $content;
|
||||||
|
|
||||||
@ -207,13 +207,13 @@ class Request
|
|||||||
protected static $requestFactory;
|
protected static $requestFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $query The GET parameters
|
* @param array $query The GET parameters
|
||||||
* @param array $request The POST parameters
|
* @param array $request The POST parameters
|
||||||
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
|
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
|
||||||
* @param array $cookies The COOKIE parameters
|
* @param array $cookies The COOKIE parameters
|
||||||
* @param array $files The FILES parameters
|
* @param array $files The FILES parameters
|
||||||
* @param array $server The SERVER parameters
|
* @param array $server The SERVER parameters
|
||||||
* @param string|resource $content The raw body data
|
* @param string|resource|null $content The raw body data
|
||||||
*/
|
*/
|
||||||
public function __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null)
|
public function __construct(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null)
|
||||||
{
|
{
|
||||||
@ -225,13 +225,13 @@ class Request
|
|||||||
*
|
*
|
||||||
* This method also re-initializes all properties.
|
* This method also re-initializes all properties.
|
||||||
*
|
*
|
||||||
* @param array $query The GET parameters
|
* @param array $query The GET parameters
|
||||||
* @param array $request The POST parameters
|
* @param array $request The POST parameters
|
||||||
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
|
* @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
|
||||||
* @param array $cookies The COOKIE parameters
|
* @param array $cookies The COOKIE parameters
|
||||||
* @param array $files The FILES parameters
|
* @param array $files The FILES parameters
|
||||||
* @param array $server The SERVER parameters
|
* @param array $server The SERVER parameters
|
||||||
* @param string|resource $content The raw body data
|
* @param string|resource|null $content The raw body data
|
||||||
*/
|
*/
|
||||||
public function initialize(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null)
|
public function initialize(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null)
|
||||||
{
|
{
|
||||||
@ -294,13 +294,13 @@ class Request
|
|||||||
* The information contained in the URI always take precedence
|
* The information contained in the URI always take precedence
|
||||||
* over the other information (server and parameters).
|
* over the other information (server and parameters).
|
||||||
*
|
*
|
||||||
* @param string $uri The URI
|
* @param string $uri The URI
|
||||||
* @param string $method The HTTP method
|
* @param string $method The HTTP method
|
||||||
* @param array $parameters The query (GET) or request (POST) parameters
|
* @param array $parameters The query (GET) or request (POST) parameters
|
||||||
* @param array $cookies The request cookies ($_COOKIE)
|
* @param array $cookies The request cookies ($_COOKIE)
|
||||||
* @param array $files The request files ($_FILES)
|
* @param array $files The request files ($_FILES)
|
||||||
* @param array $server The server parameters ($_SERVER)
|
* @param array $server The server parameters ($_SERVER)
|
||||||
* @param string|resource $content The raw body data
|
* @param string|resource|null $content The raw body data
|
||||||
*
|
*
|
||||||
* @return static
|
* @return static
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user