Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
70 | public static function from(array $decoded): self |
||
71 | { |
||
72 | ['status' => $status, 'data' => $data] = export('status', 'data')->requireAll()->from($decoded); |
||
73 | enforce(Status::from($status)->isSuccess())->orThrow('Decode non-success in JSendSuccess'); |
||
74 | |||
75 | return new self($data); |
||
76 | } |
||
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..