Skip to content

Commit caebf39

Browse files
author
Martin Brecht-Precht
committed
Return type and inheritance bug fixing.
1 parent 1f1cf16 commit caebf39

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Common/NodeInterface.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public function getNodeType(): string;
3333
public function getDocument(): DocumentInterface;
3434

3535
/**
36-
* @return mixed
36+
* @noinspection ReturnTypeCanBeDeclaredInspection
37+
* @return NodeInterface|null
3738
*/
3839
public function getParent();
3940

@@ -48,9 +49,10 @@ public function hasParent(): bool;
4849
public function hasChildren(): bool;
4950

5051
/**
51-
* @return CountableIteratorInterface
52+
* @noinspection ReturnTypeCanBeDeclaredInspection
53+
* @return CountableIteratorInterface|null
5254
*/
53-
public function getChildren(): CountableIteratorInterface;
55+
public function getChildren();
5456

5557
/**
5658
* @return int

0 commit comments

Comments
 (0)