diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-05 12:31:48 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-05 12:31:48 +0200 |
commit | faea5ab837ab6393c8821f85cf8abe2723593e8e (patch) | |
tree | dc1ab97ca126aad39ba88203fd8d9fdef7672169 /ext/xmlreader/php_xmlreader.stub.php | |
parent | d3cf5973282d30b1f9f08904e7aaf2675fb51f93 (diff) | |
download | php-git-faea5ab837ab6393c8821f85cf8abe2723593e8e.tar.gz |
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.
Diffstat (limited to 'ext/xmlreader/php_xmlreader.stub.php')
-rw-r--r-- | ext/xmlreader/php_xmlreader.stub.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xmlreader/php_xmlreader.stub.php b/ext/xmlreader/php_xmlreader.stub.php index 844a8fddca..5e8fda564d 100644 --- a/ext/xmlreader/php_xmlreader.stub.php +++ b/ext/xmlreader/php_xmlreader.stub.php @@ -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) {} } |