1 | <?php |
||
7 | final class BadRequest extends AbstractApiProblem |
||
8 | { |
||
9 | /** |
||
10 | * @var array[] |
||
11 | */ |
||
12 | private $invalidParameters = []; |
||
13 | |||
14 | /** |
||
15 | * @return int |
||
16 | */ |
||
17 | 2 | public function getStatus(): int |
|
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | 2 | public function getType(): string |
|
29 | |||
30 | /** |
||
31 | * @param string[] $invalidParameters |
||
32 | * |
||
33 | * @return ApiProblemInterface |
||
34 | */ |
||
35 | 1 | public function withInvalidParameters(array $invalidParameters): ApiProblemInterface |
|
42 | |||
43 | /** |
||
44 | * @return array |
||
45 | */ |
||
46 | 2 | public function getInvalidParameters(): array |
|
50 | } |
||
51 |
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..