1 | <?php |
||
12 | final class JSendSuccess implements JSendInterface |
||
13 | { |
||
14 | use JSendStatusTrait; |
||
15 | use JSendDataTrait; |
||
16 | use JSendResponseTrait; |
||
17 | use JSendJsonTrait; |
||
18 | use ResponseDataTrait; |
||
19 | |||
20 | /** |
||
21 | * JSendSuccess constructor. |
||
22 | * |
||
23 | * @param array|null $data |
||
24 | */ |
||
25 | public function __construct(array $data = null) |
||
32 | |||
33 | /** |
||
34 | * @return int |
||
35 | */ |
||
36 | public function getDefaultHttpStatusCode(): int |
||
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | public function asArray(): array |
||
51 | |||
52 | /** |
||
53 | * @param string $json |
||
54 | * |
||
55 | * @return JSendSuccess |
||
56 | * @throws InvalidJsonException |
||
57 | */ |
||
58 | public static function decode(string $json): self |
||
64 | |||
65 | /** |
||
66 | * @param array $decoded |
||
67 | * |
||
68 | * @return JSendSuccess |
||
69 | */ |
||
70 | public static function from(array $decoded): self |
||
77 | } |
||
78 |
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..