Skip to content

Commit 3d3acc0

Browse files
committed
Update to the last version of PHP-Parser (4.0)
1 parent eedfec3 commit 3d3acc0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

PHPCtags.class.php

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ private function struct($node, $reset=FALSE, $parent=array())
132132
foreach ($node as $subNode) {
133133
$this->struct($subNode);
134134
}
135+
} elseif ($node instanceof Stmt\Expression) {
136+
foreach ($node as $subNode) {
137+
$this->struct($subNode);
138+
}
135139
} elseif ($node instanceof Stmt\Class_) {
136140
$kind = 'c';
137141
$name = $node->name;

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "library",
66
"require": {
77
"php": ">=5.3",
8-
"nikic/php-parser": "^3.1"
8+
"nikic/php-parser": "^4.0"
99
},
1010
"require-dev": {
1111
"phpunit/phpunit": "~4"

0 commit comments

Comments
 (0)