1 | <?php |
||
13 | class TransactionInputSerializer |
||
14 | { |
||
15 | /** |
||
16 | * @var OutPointSerializer |
||
17 | */ |
||
18 | private $outpointSerializer; |
||
19 | |||
20 | /** |
||
21 | * @var \BitWasp\Buffertools\Types\VarString |
||
22 | */ |
||
23 | private $varstring; |
||
24 | |||
25 | /** |
||
26 | * @var \BitWasp\Buffertools\Types\Uint32 |
||
27 | */ |
||
28 | private $uint32le; |
||
29 | 2692 | ||
30 | /** |
||
31 | 2692 | * TransactionInputSerializer constructor. |
|
32 | 2692 | * @param OutPointSerializerInterface $outPointSerializer |
|
33 | 2692 | */ |
|
34 | public function __construct(OutPointSerializerInterface $outPointSerializer) |
||
40 | 2692 | ||
41 | 2692 | /** |
|
42 | 2692 | * @param TransactionInputInterface $input |
|
43 | 2692 | * @return BufferInterface |
|
44 | */ |
||
45 | public function serialize(TransactionInputInterface $input) |
||
53 | 2602 | ||
54 | 2602 | /** |
|
55 | 2602 | * @param Parser $parser |
|
56 | 2602 | * @return TransactionInput |
|
57 | 1301 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
|
58 | 1301 | */ |
|
59 | public function fromParser(Parser $parser) |
||
67 | |||
68 | 198 | /** |
|
69 | * @param BufferInterface|string $string |
||
70 | * @return TransactionInput |
||
71 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
72 | */ |
||
73 | public function parse($string) |
||
77 | } |
||
78 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.