| 1 | <?php |
||
| 10 | final class BadRequest extends AbstractApiProblem |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array[] |
||
| 14 | */ |
||
| 15 | private $invalidParameters = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return int |
||
| 19 | */ |
||
| 20 | 2 | public function getStatus(): int |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 2 | public function getType(): string |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param string[] $invalidParameters |
||
| 35 | * |
||
| 36 | * @return ApiProblemInterface |
||
| 37 | */ |
||
| 38 | 1 | public function withInvalidParameters(array $invalidParameters): ApiProblemInterface |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | 2 | public function getInvalidParameters(): array |
|
| 53 | } |
||
| 54 |
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..