File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 37
37
final class FileCacheStorage implements CacheStorage
38
38
{
39
39
40
- private const CACHED_CLEARED_VERSION = 'v1-variadic ' ;
40
+ private const CACHED_CLEARED_VERSION = 'v2-old-two ' ;
41
41
42
42
public function __construct (private string $ directory )
43
43
{
@@ -151,6 +151,10 @@ public function clearUnusedFiles(): void
151
151
"<?php declare(strict_types = 1); \n\n%s " ,
152
152
'return PHPStan \\Cache \\CacheItem:: ' ,
153
153
);
154
+ $ beginOld2 = sprintf (
155
+ "<?php declare(strict_types = 1); \n\n%s " ,
156
+ 'return \\PHPStan \\Cache \\CacheItem:: ' ,
157
+ );
154
158
$ emptyDirectoriesToCheck = [];
155
159
foreach ($ files as $ file ) {
156
160
try {
@@ -163,6 +167,7 @@ public function clearUnusedFiles(): void
163
167
!str_starts_with ($ contents , $ beginFunction )
164
168
&& !str_starts_with ($ contents , $ beginMethod )
165
169
&& !str_starts_with ($ contents , $ beginOld )
170
+ && !str_starts_with ($ contents , $ beginOld2 )
166
171
) {
167
172
continue ;
168
173
}
You can’t perform that action at this time.
0 commit comments