I am not getting the exact solution, but I got a temporary solution for immediate basis, just hide it, I use the function on the top of the file after ‘<?php’ start. It disables the warning.
define(‘WP_DEBUG_DISPLAY’, false); //It’s work for me
You may also try
ini_set(‘display_errors’,’Off’);
ini_set(‘error_reporting’, E_ALL );
define(‘WP_DEBUG’, false);