1 | <?php |
||
13 | class TransactionInputSerializer |
||
14 | { |
||
15 | /** |
||
16 | * @var OutPointSerializer |
||
17 | */ |
||
18 | private $outpointSerializer; |
||
19 | |||
20 | /** |
||
21 | * TransactionInputSerializer constructor. |
||
22 | * @param OutPointSerializerInterface $outPointSerializer |
||
23 | */ |
||
24 | public function __construct(OutPointSerializerInterface $outPointSerializer) |
||
30 | |||
31 | 2692 | /** |
|
32 | 2692 | * @param TransactionInputInterface $input |
|
33 | 2692 | * @return BufferInterface |
|
34 | */ |
||
35 | public function serialize(TransactionInputInterface $input) |
||
43 | 2692 | ||
44 | /** |
||
45 | * @param Parser $parser |
||
46 | * @return TransactionInput |
||
47 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
48 | */ |
||
49 | public function fromParser(Parser $parser) |
||
57 | 1301 | ||
58 | 1301 | /** |
|
59 | * @param BufferInterface|string $string |
||
60 | * @return TransactionInput |
||
61 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
62 | */ |
||
63 | public function parse($string) |
||
67 | } |
||
68 |
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.