Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function __construct() { |
||
17 | parent::__construct( __( 'Invoicing', 'invoicing' ) ); |
||
18 | |||
19 | // Include supporting classes. |
||
20 | include_once 'class-wpinv-privacy-exporters.php'; |
||
21 | |||
22 | // This hook registers Invoicing data exporters. |
||
23 | $this->add_exporter( 'wpinv-customer-invoices', __( 'Customer Invoices', 'invoicing' ), array( 'WPInv_Privacy_Exporters', 'customer_invoice_data_exporter' ) ); |
||
|
|||
24 | } |
||
25 | |||
45 |
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: