Skip to content

Commit f2acf14

Browse files
Niklanondrejmirtes
authored andcommitted
Add stub for \DOMNode::hasAttributes
1 parent 1d1672f commit f2acf14

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

stubs/dom.stub

+11
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ class DOMDocument
3030
class DOMNode
3131
{
3232

33+
/**
34+
* @var DOMNamedNodeMap|null
35+
*/
36+
public $attributes;
37+
38+
/**
39+
* @phpstan-assert-if-true !null $this->attributes
40+
* @return bool
41+
*/
42+
public function hasAttributes() {}
43+
3344
}
3445

3546
class DOMElement extends DOMNode

0 commit comments

Comments
 (0)