1 | <?php |
||
12 | class admin_controller |
||
13 | { |
||
14 | /** @var \phpbb\language\language */ |
||
15 | protected $language; |
||
16 | |||
17 | /** @var \blitze\content\services\action_handler */ |
||
18 | protected $action_handler; |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | * |
||
23 | * @param \phpbb\language\language $language Language object |
||
24 | * @param \blitze\content\services\action_handler $action_handler Handles actions |
||
25 | */ |
||
26 | 1 | public function __construct(\phpbb\language\language $language, \blitze\content\services\action_handler $action_handler) |
|
31 | |||
32 | /** |
||
33 | * Handle admin actions |
||
34 | * |
||
35 | * @param string $action |
||
36 | * @param string $type |
||
37 | * @param string $base_url |
||
38 | * @return void |
||
39 | */ |
||
40 | 1 | public function handle($action, $type, $base_url) |
|
53 | } |
||
54 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.