1 | <?php |
||||
2 | /** |
||||
3 | * WPTools |
||||
4 | * @package TwinDigital |
||||
5 | * @subpackage WPTools |
||||
6 | * @author Twin Digital <[email protected]> |
||||
7 | * @copyright 2017 Twin Digital |
||||
8 | * Plugin Name: WPTools |
||||
9 | * Plugin URI: https://twindigital.nl/ |
||||
10 | * Description: WPTools |
||||
11 | * Text Domain: twindigital-wptools |
||||
12 | * Author: Twin Digital |
||||
13 | * Version: 0.5.0-RC2 |
||||
14 | * Author URI: https://twindigital.nl/ |
||||
15 | */ |
||||
16 | |||||
17 | use TwinDigital\WPTools\PluginTools; |
||||
18 | |||||
19 | if (defined('ABSPATH') === false) { |
||||
20 | exit; |
||||
21 | } |
||||
22 | require __DIR__ . '/vendor/autoload.php'; |
||||
23 | add_action('plugins_loaded', PluginTools::loadPluginList()); |
||||
0 ignored issues
–
show
TwinDigital\WPTools\PluginTools::loadPluginList() of type void is incompatible with the type callable expected by parameter $function_to_add of add_action() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
24 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.