|
@@ -14,6 +14,8 @@ declare(strict_types=1);
|
|
|
|
|
|
namespace PhpCsFixer\Cache;
|
|
|
|
|
|
+use PhpCsFixer\Tokenizer\CodeHasher;
|
|
|
+
|
|
|
/**
|
|
|
* Class supports caching information about state of fixing files.
|
|
|
*
|
|
@@ -136,6 +138,6 @@ final class FileCacheManager implements CacheManagerInterface
|
|
|
|
|
|
private function calcHash(string $content): string
|
|
|
{
|
|
|
- return md5($content);
|
|
|
+ return CodeHasher::calculateCodeHash($content);
|
|
|
}
|
|
|
}
|