Skip to content

Commit f090089

Browse files
samsonasikstaabm
authored andcommitted
fix phpstan on php 7.4
1 parent eba0376 commit f090089

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

tests/PHPStan/Type/FileTypeMapperTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,8 @@ private function clearFileTypeMapperCache(string $tmpDir, string $fileName): voi
255255
$directory1 = substr($cacheKeyHash, 0, 2);
256256
$directory2 = substr($cacheKeyHash, 2, 2);
257257

258-
$cacheFilePath = sprintf(
259-
'%s/cache/PHPStan/%s/%s/%s.php',
260-
$tmpDir,
261-
$directory1,
262-
$directory2,
263-
$cacheKeyHash,
264-
);
258+
$cacheTmpRootDir = sprintf('%s/cache/PHPStan', $tmpDir);
259+
$cacheFilePath = $cacheTmpRootDir . '/' . $directory1 . '/' . $directory2 . $cacheKeyHash;
265260

266261
if (!is_file($cacheFilePath)) {
267262
return;

0 commit comments

Comments
 (0)