1 | <?php declare(strict_types=1); |
||
19 | class Request implements RequestInterface |
||
20 | { |
||
21 | use RequestTrait; |
||
22 | |||
23 | public const METHOD_GET = 'GET'; |
||
24 | public const METHOD_HEAD = 'HEAD'; |
||
25 | public const METHOD_POST = 'POST'; |
||
26 | public const METHOD_PUT = 'PUT'; |
||
27 | public const METHOD_DELETE = 'DELETE'; |
||
28 | public const METHOD_CONNECT = 'CONNECT'; |
||
29 | public const METHOD_OPTIONS = 'OPTIONS'; |
||
30 | public const METHOD_PATCH = 'PATCH'; |
||
31 | public const METHOD_TRACE = 'TRACE'; |
||
32 | |||
33 | /** @var StreamInterface */ |
||
34 | private $stream; |
||
35 | |||
36 | /** |
||
37 | * @param null|string $uri URI for the request, if any. |
||
38 | * @param string $method HTTP method for the request, if any. |
||
39 | * @param string|resource|StreamInterface $body Output body, if any. |
||
40 | * @param array $headers Headers for the message, if any. |
||
41 | * @throws InvalidArgumentException for any invalid value. |
||
42 | */ |
||
43 | 10 | public function __construct(string $uri = null, string $method = self::METHOD_GET, $body = 'php://temp', array $headers = []) |
|
53 | |||
54 | 10 | private function validateUri($uri) |
|
62 | } |
||
63 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..