Throw from XmlReader::expand() if DOM extension missing

Otherwise it is hard to uphold the arginfo contract for this
function -- we cannot simply mirror the zpp call, as the class
entry it is based on does not exist.
This commit is contained in:
Nikita Popov 2020-10-05 12:31:48 +02:00
parent d3cf597328
commit faea5ab837
3 changed files with 9 additions and 4 deletions

View file

@ -76,6 +76,6 @@ class XMLReader
/** @return bool|XMLReader */
public static function XML(string $source, ?string $encoding = null, int $options = 0) {}
/** @return DOMNode|false|null */
/** @return DOMNode|false */
public function expand(?DOMNode $basenode = null) {}
}