Upgrade to 3.3.0

This commit is contained in:
Bastian Allgeier
2019-11-05 09:35:58 +01:00
parent 447a9dd266
commit a431716732
186 changed files with 3068 additions and 1458 deletions

View File

@@ -58,11 +58,11 @@ class Response
/**
* Creates a new response object
*
* @param string $body
* @param string $type
* @param integer $code
* @param array $headers
* @param string $charset
* @param string $body
* @param string $type
* @param int $code
* @param array $headers
* @param string $charset
*/
public function __construct($body = '', ?string $type = null, ?int $code = null, ?array $headers = null, ?string $charset = null)
{
@@ -194,7 +194,7 @@ class Response
/**
* Getter for single headers
*
* @param string $key Name of the header
* @param string $key Name of the header
* @return string|null
*/
public function header(string $key): ?string
@@ -217,8 +217,8 @@ class Response
* header and automatic conversion of arrays.
*
* @param string|array $body
* @param integer $code
* @param boolean $pretty
* @param int $code
* @param bool $pretty
* @param array $headers
* @return self
*/
@@ -242,7 +242,7 @@ class Response
* given location.
*
* @param string $location
* @param integer $code
* @param int $code
* @return self
*/
public static function redirect(?string $location = null, ?int $code = null)