@@ -158,7 +158,13 @@ public function restore(array $allAnalysedFiles, bool $debug, bool $onlyFiles, ?
158158 return new ResultCache ($ allAnalysedFiles , true , time (), $ this ->getMeta ($ allAnalysedFiles , $ projectConfigArray ), [], [], []);
159159 }
160160
161+ if ($ output ->isDebug ()) {
162+ $ output ->writeLineFormatted ('Computing meta ' );
163+ }
161164 $ meta = $ this ->getMeta ($ allAnalysedFiles , $ projectConfigArray );
165+ if ($ output ->isDebug ()) {
166+ $ output ->writeLineFormatted ('Finished computing meta ' );
167+ }
162168 if ($ data ['meta ' ] !== $ meta ) {
163169 if ($ output ->isDebug ()) {
164170 $ output ->writeLineFormatted ('Result cache not used because the metadata do not match. ' );
@@ -183,6 +189,10 @@ public function restore(array $allAnalysedFiles, bool $debug, bool $onlyFiles, ?
183189 $ filteredErrors = [];
184190 $ filteredExportedNodes = [];
185191 $ newFileAppeared = false ;
192+
193+ if ($ output ->isDebug ()) {
194+ $ output ->writeLineFormatted (sprintf ('Hashing %d files to analyse ' , count ($ allAnalysedFiles )));
195+ }
186196 foreach ($ allAnalysedFiles as $ analysedFile ) {
187197 if (array_key_exists ($ analysedFile , $ errors )) {
188198 $ filteredErrors [$ analysedFile ] = $ errors [$ analysedFile ];
@@ -230,6 +240,10 @@ public function restore(array $allAnalysedFiles, bool $debug, bool $onlyFiles, ?
230240 }
231241 }
232242
243+ if ($ output ->isDebug ()) {
244+ $ output ->writeLineFormatted ('Finished hashing files to analyse ' );
245+ }
246+
233247 foreach (array_keys ($ deletedFiles ) as $ deletedFile ) {
234248 if (!array_key_exists ($ deletedFile , $ invertedDependencies )) {
235249 continue ;
0 commit comments