Issues (8)

src/Provide/Transfer/Output.php (1 issue)

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
Documentation Bug introduced by
It seems like $headers of type array<string,string> is incompatible with the declared type BEAR\Resource\Headers of property $headers.

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..

Loading history...
16
        $this->view = $view;
17
        $this->body = [];
18
    }
19
}
20