File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -411,8 +411,9 @@ public function setTempDirectory(string $dir): self
411411 private function loadCache (): void
412412 {
413413 $ file = $ this ->getCacheFile ();
414- [$ this ->classes , $ this ->missing ] = @include $ file ; // @ file may not exist
415- if (is_array ($ this ->classes )) {
414+ $ data = @include $ file ; // @ file may not exist
415+ if (is_array ($ data )) {
416+ [$ this ->classes , $ this ->missing ] = $ data ;
416417 return ;
417418 }
418419
@@ -421,8 +422,10 @@ private function loadCache(): void
421422 throw new \RuntimeException ("Unable to create or acquire exclusive lock on file ' $ file.lock'. " );
422423 }
423424
424- [$ this ->classes , $ this ->missing ] = @include $ file ; // @ file may not exist
425- if (!is_array ($ this ->classes )) {
425+ $ data = @include $ file ; // @ file may not exist
426+ if (is_array ($ data )) {
427+ [$ this ->classes , $ this ->missing ] = $ data ;
428+ } else {
426429 $ this ->rebuild ();
427430 }
428431
You can’t perform that action at this time.
0 commit comments