mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
d3cf597328
commit
faea5ab837
3 changed files with 9 additions and 4 deletions
|
@ -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) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue