Skip to content

Commit 9932c87

Browse files
authored
Merge pull request #208 from TysonAndre/phan-remove-unused
Remove unreachable statement and unused variable
2 parents e1258a9 + a71ab34 commit 9932c87

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public function getLastChild() {
399399
* @return Node|null
400400
*/
401401
public function getDescendantNodeAtPosition(int $pos) {
402-
foreach ($this->getChildNodes() as $name => $child) {
402+
foreach ($this->getChildNodes() as $child) {
403403
if ($child->containsPosition($pos)) {
404404
$node = $child->getDescendantNodeAtPosition($pos);
405405
if (!is_null($node)) {

src/Parser.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,6 @@ private function parseStringLiteralExpression2($parentNode) {
10011001
continue;
10021002
}
10031003
}
1004-
1005-
return $expression;
10061004
}
10071005

10081006
/**

0 commit comments

Comments
 (0)