1 | <?php |
||
11 | final class ParsedFetchCommandResponse implements ResponseInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $number; |
||
17 | |||
18 | /** |
||
19 | * @var ItemList |
||
20 | */ |
||
21 | private $itemList; |
||
22 | |||
23 | /** |
||
24 | * @param \Iterator<int, string> $lineIterator |
||
25 | */ |
||
26 | 7 | public function __construct(\Iterator $lineIterator) |
|
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 2 | public function __toString(): string |
|
65 | |||
66 | /** |
||
67 | * @param CompletionResult $expectedResult |
||
68 | * @return ResponseInterface |
||
69 | * @throws AssertionFailedException |
||
70 | */ |
||
71 | 1 | public function assertCompletion(CompletionResult $expectedResult): ResponseInterface |
|
75 | |||
76 | /** |
||
77 | * @return ResponseInterface |
||
78 | * @throws AssertionFailedException |
||
79 | */ |
||
80 | 2 | public function assertContinuation(): ResponseInterface |
|
84 | |||
85 | /** |
||
86 | * @return ResponseInterface |
||
87 | * @throws AssertionFailedException |
||
88 | */ |
||
89 | 2 | public function assertTagged(): ResponseInterface |
|
93 | |||
94 | /** |
||
95 | * @param string $className |
||
96 | * @return ResponseInterface |
||
97 | * @throws AssertionFailedException |
||
98 | */ |
||
99 | public function assertParsed(string $className): ResponseInterface |
||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | 4 | public function getBody(): string |
|
119 | |||
120 | /** |
||
121 | * @return int |
||
122 | */ |
||
123 | 1 | public function getNumber(): int |
|
127 | |||
128 | /** |
||
129 | * @return ItemList |
||
130 | */ |
||
131 | 1 | public function getItemList(): ItemList |
|
135 | } |
||
136 |
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..