| 1 | <?php |
||
| 16 | class front_controller |
||
| 17 | { |
||
| 18 | /** @var \phpbb\ads\ad\manager */ |
||
| 19 | protected $manager; |
||
| 20 | |||
| 21 | /** @var \phpbb\controller\helper */ |
||
| 22 | protected $helper; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Constructor |
||
| 26 | * |
||
| 27 | * @param \phpbb\ads\ad\manager $manager Advertisement manager object |
||
| 28 | * @param \phpbb\controller\helper $helper Controller helper object |
||
| 29 | */ |
||
| 30 | public function __construct(\phpbb\ads\ad\manager $manager, \phpbb\controller\helper $helper) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Increment clicks for an ad |
||
| 38 | * |
||
| 39 | * @param int $ad_id Advertisement ID |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | public function increment_clicks($ad_id) |
||
| 48 | } |
||
| 49 |
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: