Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function __construct() |
||
29 | { |
||
30 | $this->inPorts()->add('in', ['datatype' => 'bang']); |
||
31 | $this->outPorts()->add('count', ['datatype' => 'int']); |
||
32 | |||
33 | $this->inPorts()->in->on('data', [$this, 'appendCount']); |
||
34 | $this->inPorts()->in->on('disconnect', [$this, 'sendCount']); |
||
35 | |||
36 | $this->count = null; |
||
37 | } |
||
38 | |||
60 |
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..