Skip to content

Commit

Permalink
Merge pull request #384 from TysonAndre/classNames-nit
Browse files Browse the repository at this point in the history
Use PHPDoc `@param string ...$classNames`
  • Loading branch information
roblourens committed Sep 25, 2022
2 parents 1016890 + 107ac4a commit a35ec03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Node.php
Expand Up @@ -91,7 +91,7 @@ public function getFirstAncestor(...$classNames) {
* Gets first child that is an instance of one of the provided classes.
* Returns null if there is no match.
*
* @param array ...$classNames
* @param string ...$classNames
* @return Node|null
*/
public function getFirstChildNode(...$classNames) {
Expand All @@ -117,7 +117,7 @@ public function getFirstChildNode(...$classNames) {
* Gets first descendant node that is an instance of one of the provided classes.
* Returns null if there is no match.
*
* @param array ...$classNames
* @param string ...$classNames
* @return Node|null
*/
public function getFirstDescendantNode(...$classNames) {
Expand Down

0 comments on commit a35ec03

Please sign in to comment.