1 | <?php |
||
11 | class WitnessPubKeyHashAddress implements AddressInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $witnessVersion; |
||
17 | |||
18 | /** |
||
19 | * @var BufferInterface |
||
20 | */ |
||
21 | private $hash; |
||
22 | |||
23 | /** |
||
24 | * WitnessAddress constructor. |
||
25 | * @param int $witnessVersion |
||
26 | * @param BufferInterface $hash |
||
27 | */ |
||
28 | public function __construct($witnessVersion, BufferInterface $hash) |
||
41 | |||
42 | /** |
||
43 | * @return int |
||
44 | */ |
||
45 | public function getWitnessVersion() |
||
49 | |||
50 | /** |
||
51 | * @return BufferInterface|string |
||
52 | */ |
||
53 | public function getHash() |
||
57 | |||
58 | /** |
||
59 | * @param NetworkInterface $network |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getPrefixByte(NetworkInterface $network) |
||
66 | |||
67 | /** |
||
68 | * @param NetworkInterface|null $network |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getAddress(NetworkInterface $network = null) |
||
80 | } |
||
81 |
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..