Skip to content

Commit a35ec03

Browse files
authored
Merge pull request #384 from TysonAndre/classNames-nit
Use PHPDoc `@param string ...$classNames`
2 parents 1016890 + 107ac4a commit a35ec03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Node.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function getFirstAncestor(...$classNames) {
9191
* Gets first child that is an instance of one of the provided classes.
9292
* Returns null if there is no match.
9393
*
94-
* @param array ...$classNames
94+
* @param string ...$classNames
9595
* @return Node|null
9696
*/
9797
public function getFirstChildNode(...$classNames) {
@@ -117,7 +117,7 @@ public function getFirstChildNode(...$classNames) {
117117
* Gets first descendant node that is an instance of one of the provided classes.
118118
* Returns null if there is no match.
119119
*
120-
* @param array ...$classNames
120+
* @param string ...$classNames
121121
* @return Node|null
122122
*/
123123
public function getFirstDescendantNode(...$classNames) {

0 commit comments

Comments
 (0)