Skip to content

Commit

Permalink
Merge pull request #9072 from MidnightDesign/domxpath-query-return-type
Browse files Browse the repository at this point in the history
Narrow down the return type of DOMXPath::query()
  • Loading branch information
orklah committed Jan 7, 2023
2 parents 8329309 + 18e8dd9 commit 1350992
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stubs/extensions/dom.phpstub
Expand Up @@ -978,6 +978,9 @@ class DOMXPath

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 registerNamespace(string $prefix, string $namespace): bool {}
Expand Down

0 comments on commit 1350992

Please sign in to comment.