Skip to content

Commit 51fcdc2

Browse files
[Cache] Replace Strings::webalize() with sha1_file() from resolved path on ChangedFilesDetector (rectorphp#3356)
Co-authored-by: GitHub Action <[email protected]>
1 parent 7f873f0 commit 51fcdc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/Caching/Detector/ChangedFilesDetector.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Rector\Caching\Detector;
66

7-
use Nette\Utils\Strings;
87
use Rector\Caching\Cache;
98
use Rector\Caching\Config\FileHashComputer;
109
use Rector\Caching\Enum\CacheKey;
@@ -113,7 +112,7 @@ private function hashFile(string $filePath): string
113112

114113
private function storeConfigurationDataHash(string $filePath, string $configurationHash): void
115114
{
116-
$key = CacheKey::CONFIGURATION_HASH_KEY . '_' . Strings::webalize($filePath);
115+
$key = CacheKey::CONFIGURATION_HASH_KEY . '_' . $this->hashFile($filePath);
117116
$this->invalidateCacheIfConfigurationChanged($key, $configurationHash);
118117

119118
$this->cache->save($key, CacheKey::CONFIGURATION_HASH_KEY, $configurationHash);

0 commit comments

Comments
 (0)