File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -223,15 +223,17 @@ private function initializeKnownElements(): void
223
223
224
224
$ this ->initializing = true ;
225
225
226
- foreach ($ this ->stubFiles as $ stubFile ) {
227
- $ nodes = $ this ->parser ->parseFile ($ stubFile );
228
- foreach ($ nodes as $ node ) {
229
- $ this ->initializeKnownElementNode ($ stubFile , $ node );
226
+ try {
227
+ foreach ($ this ->stubFiles as $ stubFile ) {
228
+ $ nodes = $ this ->parser ->parseFile ($ stubFile );
229
+ foreach ($ nodes as $ node ) {
230
+ $ this ->initializeKnownElementNode ($ stubFile , $ node );
231
+ }
230
232
}
233
+ } finally {
234
+ $ this ->initializing = false ;
235
+ $ this ->initialized = true ;
231
236
}
232
-
233
- $ this ->initializing = false ;
234
- $ this ->initialized = true ;
235
237
}
236
238
237
239
private function initializeKnownElementNode (string $ stubFile , Node $ node ): void
You can’t perform that action at this time.
0 commit comments