1 | <?php |
||
23 | class WebViewController extends Controller { |
||
24 | |||
25 | /** @var string */ |
||
26 | private $userId; |
||
27 | |||
28 | /** @var IURLGenerator */ |
||
29 | private $urlgenerator; |
||
30 | |||
31 | /** @var IDb */ |
||
32 | private $db; |
||
33 | |||
34 | /** |
||
35 | * WebViewController constructor. |
||
36 | * |
||
37 | * @param string $appName |
||
38 | * @param IRequest $request |
||
39 | * @param $userId |
||
40 | * @param IURLGenerator $urlgenerator |
||
41 | * @param IDb $db |
||
42 | */ |
||
43 | public function __construct($appName, IRequest $request, $userId, IURLGenerator $urlgenerator, IDb $db) { |
||
49 | |||
50 | /** |
||
51 | * @NoAdminRequired |
||
52 | * @NoCSRFRequired |
||
53 | */ |
||
54 | public function index() { |
||
65 | |||
66 | /** |
||
67 | * @param string $url |
||
68 | * @param string $title |
||
69 | * @return TemplateResponse |
||
70 | * |
||
71 | * @NoAdminRequired |
||
72 | * @NoCSRFRequired |
||
73 | */ |
||
74 | public function bookmarklet($url = "", $title = "") { |
||
92 | |||
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: