It seems like \BitWasp\Bitcoin\Serializer\Types::varstring() of type object<BitWasp\Buffertools\Types\VarString> is incompatible with the declared type object<BitWasp\Buffertools\Template> of property $varstring.
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..
Loading history...
24
1332
}
25
26
/**
27
* @param Parser $parser
28
* @param $size
29
* @return ScriptWitness
30
*/
31
public function fromParser(Parser $parser, $size)
32
{
33
$entries = [];
34
for ($j = 0; $j < $size; $j++) {
35
$data = $this->varstring->parse($parser);
36
$entries[] = $data;
37
}
38
39
return new ScriptWitness($entries);
40
}
41
42
/**
43
* @param ScriptWitnessInterface $witness
44
* @return BufferInterface
45
*/
46
22
public function serialize(ScriptWitnessInterface $witness)
The method appendBuffer() does not seem to exist on object<BitWasp\Buffertools\Parser>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
The method appendBuffer() does not seem to exist on object<BitWasp\Buffertools\Parser>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
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..