Skip to content

Commit 12a19b2

Browse files
committedOct 8, 2024
This was also used format
1 parent 466ad51 commit 12a19b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/Cache/FileCacheStorage.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
final class FileCacheStorage implements CacheStorage
3838
{
3939

40-
private const CACHED_CLEARED_VERSION = 'v1-variadic';
40+
private const CACHED_CLEARED_VERSION = 'v2-old-two';
4141

4242
public function __construct(private string $directory)
4343
{
@@ -151,6 +151,10 @@ public function clearUnusedFiles(): void
151151
"<?php declare(strict_types = 1);\n\n%s",
152152
'return PHPStan\\Cache\\CacheItem::',
153153
);
154+
$beginOld2 = sprintf(
155+
"<?php declare(strict_types = 1);\n\n%s",
156+
'return \\PHPStan\\Cache\\CacheItem::',
157+
);
154158
$emptyDirectoriesToCheck = [];
155159
foreach ($files as $file) {
156160
try {
@@ -163,6 +167,7 @@ public function clearUnusedFiles(): void
163167
!str_starts_with($contents, $beginFunction)
164168
&& !str_starts_with($contents, $beginMethod)
165169
&& !str_starts_with($contents, $beginOld)
170+
&& !str_starts_with($contents, $beginOld2)
166171
) {
167172
continue;
168173
}

0 commit comments

Comments
 (0)
Please sign in to comment.