| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Responding |
||
| 14 | { |
||
| 15 | private const LENGTH = 'Content-length'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $socket = null; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Encoder constructor. |
||
| 24 | * @param Protocol $socket |
||
| 25 | */ |
||
| 26 | public function __construct(Protocol $socket) |
||
| 27 | { |
||
| 28 | $this->socket = $socket; |
||
|
|
|||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param ResponseInterface $response |
||
| 33 | */ |
||
| 34 | public function makeResponse(ResponseInterface $response) : void |
||
| 55 | } |
||
| 56 | } |
||
| 58 |
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..