1 | <?php |
||
13 | class PayToPubkey implements ScriptInfoInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var ScriptInterface |
||
17 | */ |
||
18 | private $script; |
||
19 | |||
20 | /** |
||
21 | * @var PublicKeyInterface |
||
22 | */ |
||
23 | private $publicKey; |
||
24 | |||
25 | /** |
||
26 | * @param ScriptInterface $script |
||
27 | */ |
||
28 | 24 | public function __construct(ScriptInterface $script) |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | 24 | public function classification() |
|
45 | |||
46 | /** |
||
47 | * @return int |
||
48 | */ |
||
49 | 24 | public function getRequiredSigCount() |
|
53 | |||
54 | /** |
||
55 | * @return int |
||
56 | */ |
||
57 | public function getKeyCount() |
||
61 | |||
62 | /** |
||
63 | * @param PublicKeyInterface $publicKey |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function checkInvolvesKey(PublicKeyInterface $publicKey) |
||
70 | |||
71 | /** |
||
72 | * @return PublicKeyInterface[] |
||
73 | */ |
||
74 | 24 | public function getKeys() |
|
78 | |||
79 | /** |
||
80 | * @param TransactionSignatureInterface[] $signatures |
||
81 | * @param PublicKeyInterface[] $publicKeys |
||
82 | * @return Script|ScriptInterface |
||
83 | */ |
||
84 | 12 | public function makeScriptSig(array $signatures = [], array $publicKeys = []) |
|
93 | } |
||
94 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: