1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Narrow down the return type of DOMXPath::query()

This commit is contained in:
Rudolph Gottesheim 2023-01-06 16:19:48 +01:00
parent 8329309999
commit 18e8dd9da1

View File

@ -978,6 +978,9 @@ class DOMXPath
public function evaluate(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {} public function evaluate(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {}
/**
* @return DOMNodeList<DOMNode>|false
*/
public function query(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {} public function query(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {}
public function registerNamespace(string $prefix, string $namespace): bool {} public function registerNamespace(string $prefix, string $namespace): bool {}