1 | <?php |
||
15 | class BaseConnectionTestCase extends BaseUnitTestCase |
||
16 | { |
||
17 | /** |
||
18 | * @var Connection |
||
19 | */ |
||
20 | protected $connection; |
||
21 | |||
22 | /** |
||
23 | * @var MockInterface |
||
24 | */ |
||
25 | protected $handshake; |
||
26 | |||
27 | /** |
||
28 | * @var MockInterface |
||
29 | */ |
||
30 | protected $querySerializer; |
||
31 | |||
32 | /** |
||
33 | * @var MockInterface |
||
34 | */ |
||
35 | protected $responseSerializer; |
||
36 | |||
37 | /** |
||
38 | * @var MockInterface |
||
39 | */ |
||
40 | protected $stream; |
||
41 | |||
42 | /** |
||
43 | * @var MockInterface |
||
44 | */ |
||
45 | protected $streamWrapper; |
||
46 | |||
47 | protected function setUp() |
||
68 | |||
69 | /** |
||
70 | * @return void |
||
71 | */ |
||
72 | protected function connect(): void |
||
82 | |||
83 | /** |
||
84 | * @param mixed|null $response |
||
85 | * @return void |
||
86 | */ |
||
87 | protected function setExpectations($response = null): void |
||
101 | |||
102 | /** |
||
103 | * @param \stdClass $buffer |
||
104 | * @return mixed |
||
105 | */ |
||
106 | protected function catchStreamWrite(\stdClass $buffer) |
||
116 | |||
117 | protected function catchStreamRead(int $bytes, \stdClass $buffer): void |
||
128 | } |
||
129 |
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..