bearsunday /
BEAR.Sunday
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\Sunday\Provide\Transfer; |
||
| 6 | |||
| 7 | use BEAR\Resource\ResourceObject; |
||
| 8 | |||
| 9 | final class Output extends ResourceObject |
||
| 10 | { |
||
| 11 | /** @param array<string, string> $headers */ |
||
| 12 | public function __construct(int $code, array $headers, string $view) |
||
| 13 | { |
||
| 14 | $this->code = $code; |
||
| 15 | $this->headers = $headers; |
||
|
0 ignored issues
–
show
|
|||
| 16 | $this->view = $view; |
||
| 17 | $this->body = []; |
||
| 18 | } |
||
| 19 | } |
||
| 20 |
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..