Skip to content

Commit 107ac4a

Browse files
committed
Use PHPDoc @param string ...$classNames
The `string` is the type of each argument. The `...` indicates that it is an array of that type, like `function (string ...$classNames)` also would indicate.
1 parent a60544e commit 107ac4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Node.php

Lines changed: 2 additions & 2 deletions
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)