Skip to content

Commit

Permalink
Merge pull request #82 from No-OBu/upd/php-parser-4.0
Browse files Browse the repository at this point in the history
Update to the last version of PHP-Parser (4.0)
  • Loading branch information
gianarb authored Oct 9, 2019
2 parents eedfec3 + 3d3acc0 commit 134dc0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions PHPCtags.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ private function struct($node, $reset=FALSE, $parent=array())
foreach ($node as $subNode) {
$this->struct($subNode);
}
} elseif ($node instanceof Stmt\Expression) {
foreach ($node as $subNode) {
$this->struct($subNode);
}
} elseif ($node instanceof Stmt\Class_) {
$kind = 'c';
$name = $node->name;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "library",
"require": {
"php": ">=5.3",
"nikic/php-parser": "^3.1"
"nikic/php-parser": "^4.0"
},
"require-dev": {
"phpunit/phpunit": "~4"
Expand Down

0 comments on commit 134dc0f

Please sign in to comment.