File tree 3 files changed +11
-4
lines changed
src/voku/SimplePhpParser/Parsers
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ### master
4
+
5
+ - "PhpCodeParser" -> fix cache key
6
+
3
7
### 0.11.0 (2020-06-18)
4
8
5
9
- "PHPInterface" -> fix recursion
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public static function process(
169
169
string $ cacheKey ,
170
170
array $ autoloaderProjectPaths
171
171
) {
172
- $ cacheKey .= '--process ' ;
172
+ $ cacheKey .= '--process-- ' . md5 ( \implode ( ' | ' , $ autoloaderProjectPaths )) ;
173
173
174
174
foreach ($ autoloaderProjectPaths as $ projectPath ) {
175
175
if (\file_exists ($ projectPath . '/vendor/autoload.php ' )) {
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ public function enterNode(Node $node)
59
59
60
60
case $ node instanceof Const_:
61
61
62
- $ constant = (new PHPConst ($ this ->parserContainer ))->readObjectFromPhpNode ($ node );
62
+ $ constant = new PHPConst ($ this ->parserContainer );
63
+ $ constant = $ constant ->readObjectFromPhpNode ($ node );
63
64
if (!$ constant ->file ) {
64
65
$ constant ->file = $ this ->fileName ;
65
66
}
@@ -83,7 +84,8 @@ public function enterNode(Node $node)
83
84
&&
84
85
$ node ->name ->parts [0 ] === 'define '
85
86
) {
86
- $ constant = (new PHPDefineConstant ($ this ->parserContainer ))->readObjectFromPhpNode ($ node );
87
+ $ constant = new PHPDefineConstant ($ this ->parserContainer );
88
+ $ constant = $ constant ->readObjectFromPhpNode ($ node );
87
89
if (!$ constant ->file ) {
88
90
$ constant ->file = $ this ->fileName ;
89
91
}
@@ -104,7 +106,8 @@ public function enterNode(Node $node)
104
106
105
107
case $ node instanceof Class_:
106
108
107
- $ class = (new PHPClass ($ this ->parserContainer ))->readObjectFromPhpNode ($ node );
109
+ $ class = new PHPClass ($ this ->parserContainer );
110
+ $ class = $ class ->readObjectFromPhpNode ($ node );
108
111
if (!$ class ->file ) {
109
112
$ class ->file = $ this ->fileName ;
110
113
}
You can’t perform that action at this time.
0 commit comments