他のWarningも抑制してしまうけど、こうしてる

error_reporting(E_ALL ^ E_WARNING);
$doc->loadHTML($source);
error_reporting(E_ALL);