| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class ResourceState |
||
| 12 | { |
||
| 13 | /** @var int */ |
||
| 14 | public $code = 200; |
||
| 15 | |||
| 16 | /** @var AbstractUri */ |
||
| 17 | public $uri; |
||
| 18 | |||
| 19 | /** @var array<string, string> */ |
||
| 20 | public $headers = []; |
||
| 21 | |||
| 22 | /** @var mixed */ |
||
| 23 | public $body; |
||
| 24 | |||
| 25 | /** @var ?string */ |
||
| 26 | public $view; |
||
| 27 | |||
| 28 | public static function create(ResourceObject $ro, mixed $body, string|null $view): self |
||
| 38 | } |
||
| 39 | |||
| 40 | public function visit(ResourceObject $ro): void |
||
| 49 |
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..