namespace X;
class Test
{
public static function invoke()
{
set_error_handler(function($severity, $message, $file) {
var_dump($file);
});
// E_WARNING trim() expects parameter 1 to be string, array give
call_user_func_array('trim', array(array()));
}
}
Test::invoke();
In this case (http://3v4l.org/dWuvG) is
$fileempty string:If you remove a namespace declaration, the problem will disappear (see http://3v4l.org/dETSj)