1 | <?php |
||
8 | class BootstrapTest extends Test |
||
9 | { |
||
10 | public $mocks = [ |
||
11 | ['event.subscribe', [], 'subscription'], |
||
12 | ['web.register', [], 'registration'], |
||
13 | ]; |
||
14 | |||
15 | public function test() |
||
33 | |||
34 | |||
35 | private $registrations = []; |
||
36 | public function registration($params) |
||
40 | |||
41 | private $subscriptions = []; |
||
42 | public function subscription($params) |
||
46 | } |
||
47 |
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: