Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Request { |
||
13 | |||
14 | use URIAttribute; |
||
15 | |||
16 | /** |
||
17 | * 请求方法 |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $method; |
||
22 | |||
23 | /** |
||
24 | * 请求头 |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $headers; |
||
29 | |||
30 | public function __construct(string $method, string $uri, array $headers = []) { |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get 请求方法 |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getMethod() |
||
44 | } |
||
45 | } |
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..