update 1.0.8.0
Commits for version update
This commit is contained in:
22
vendor/guzzlehttp/psr7/src/ServerRequest.php
vendored
22
vendor/guzzlehttp/psr7/src/ServerRequest.php
vendored
@@ -55,26 +55,24 @@ class ServerRequest extends Request implements ServerRequestInterface
|
||||
private $uploadedFiles = [];
|
||||
|
||||
/**
|
||||
* @param null|string $method HTTP method for the request
|
||||
* @param null|string|UriInterface $uri URI for the request
|
||||
* @param array $headers Headers for the message
|
||||
* @param string|resource|StreamInterface $body Message body
|
||||
* @param string $protocolVersion HTTP protocol version
|
||||
* @param array $serverParams the value of $_SERVER superglobal
|
||||
*
|
||||
* @throws InvalidArgumentException for an invalid URI
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI
|
||||
* @param array $headers Request headers
|
||||
* @param string|null|resource|StreamInterface $body Request body
|
||||
* @param string $version Protocol version
|
||||
* @param array $serverParams Typically the $_SERVER superglobal
|
||||
*/
|
||||
public function __construct(
|
||||
$method,
|
||||
$uri,
|
||||
array $headers = [],
|
||||
$body = null,
|
||||
$protocolVersion = '1.1',
|
||||
$version = '1.1',
|
||||
array $serverParams = []
|
||||
) {
|
||||
$this->serverParams = $serverParams;
|
||||
|
||||
parent::__construct($method, $uri, $headers, $body, $protocolVersion);
|
||||
parent::__construct($method, $uri, $headers, $body, $version);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -336,8 +334,8 @@ class ServerRequest extends Request implements ServerRequestInterface
|
||||
*/
|
||||
public function withoutAttribute($attribute)
|
||||
{
|
||||
if (false === isset($this->attributes[$attribute])) {
|
||||
return clone $this;
|
||||
if (false === array_key_exists($attribute, $this->attributes)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
|
||||
Reference in New Issue
Block a user