Code
- stats.php ➔ jetpack_stats_load_admin_css()
- stats.php ➔ jetpack_stats_post_table()
- stats.php ➔ jetpack_stats_post_table_cell()
- stats.php ➔ stats_load()
- stats.php ➔ stats_merged_widget_admin_init()
- stats.php ➔ stats_enqueue_dashboard_head()
- stats.php ➔ jetpack_is_dnt_enabled()
- stats.php ➔ stats_ignore_db_version()
- stats.php ➔ stats_map_meta_caps()
- stats.php ➔ stats_template_redirect()
- stats.php ➔ stats_build_view_data()
- stats.php ➔ stats_add_shutdown_action()
- stats.php ➔ stats_footer()
- stats.php ➔ stats_render_footer()
- stats.php ➔ stats_render_amp_footer()
- stats.php ➔ stats_get_options()
- stats.php ➔ stats_get_option()
- stats.php ➔ stats_set_option()
- stats.php ➔ stats_set_options()
- stats.php ➔ stats_upgrade_options()
- stats.php ➔ stats_array()
- stats.php ➔ stats_admin_menu()
- stats.php ➔ stats_admin_path()
- stats.php ➔ stats_reports_load()
- stats.php ➔ stats_reports_css()
- stats.php ➔ stats_js_remove_stnojs_cookie()
- stats.php ➔ stats_js_load_page_via_ajax()
- stats.php ➔ jetpack_admin_ui_stats_report_page_wrapper()
- stats.php ➔ stats_reports_page()
- stats.php ➔ stats_convert_admin_urls()
- stats.php ➔ stats_convert_image_urls()
- stats.php ➔ jetpack_stats_convert_chart_urls_callback()
- stats.php ➔ stats_convert_chart_urls()
- stats.php ➔ stats_convert_post_titles()
- stats.php ➔ stats_convert_post_title()
- stats.php ➔ stats_hide_smile_css()
- stats.php ➔ stats_admin_bar_head()
- stats.php ➔ stats_admin_bar_menu()
- stats.php ➔ stats_update_blog()
- stats.php ➔ stats_get_blog()
- stats.php ➔ stats_esc_html_deep()
- stats.php ➔ stats_xmlrpc_methods()
- stats.php ➔ stats_register_dashboard_widget()
- stats.php ➔ stats_dashboard_widget_options()
- stats.php ➔ stats_dashboard_widget_control()
- stats.php ➔ stats_jetpack_dashboard_widget()
- stats.php ➔ stats_register_widget_control_callback()
- stats.php ➔ stats_dashboard_head()
- stats.php ➔ stats_dashboard_widget_content()
- stats.php ➔ stats_print_wp_remote_error()
- stats.php ➔ stats_get_remote_csv()
- stats.php ➔ stats_str_getcsv()
- stats.php ➔ jetpack_stats_api_path()
- stats.php ➔ stats_get_csv()
- stats.php ➔ stats_get_from_restapi()

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: