Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
46 | 22 | public function serialize(ScriptWitnessInterface $witness) |
|
47 | { |
||
48 | 22 | $parser = new Parser(); |
|
49 | 22 | $parser->appendBuffer(Buffertools::numToVarInt($witness->count())); |
|
50 | 22 | foreach ($witness as $value) { |
|
51 | 22 | $parser->appendBuffer(new Buffer($this->varstring->write($value))); |
|
52 | } |
||
53 | |||
54 | 22 | return $parser->getBuffer(); |
|
55 | } |
||
56 | } |
||
57 |
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..