1 | <?php |
||
16 | class Jetpack_Google_Analytics_Options { |
||
17 | public static function get_option( $option_name, $default = false ) { |
||
21 | |||
22 | public static function get_tracking_code() { |
||
25 | |||
26 | public static function has_tracking_code() { |
||
30 | |||
31 | // Options used by both legacy and universal analytics |
||
32 | public static function anonymize_ip_is_enabled() { |
||
35 | |||
36 | // eCommerce options used by both legacy and universal analytics |
||
37 | public static function track_purchases_is_enabled() { |
||
40 | |||
41 | public static function track_add_to_cart_is_enabled() { |
||
44 | |||
45 | // Enhanced eCommerce options |
||
46 | public static function enhanced_ecommerce_tracking_is_enabled() { |
||
49 | |||
50 | public static function track_remove_from_cart_is_enabled() { |
||
53 | |||
54 | public static function track_product_impressions_is_enabled() { |
||
57 | |||
58 | public static function track_product_clicks_is_enabled() { |
||
61 | |||
62 | public static function track_product_detail_view_is_enabled() { |
||
65 | |||
66 | public static function track_checkout_started_is_enabled() { |
||
69 | } |
||
70 | |||
71 |
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: