From 89f291841f1597376ceeeacfce07e50747ec6176 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 11 Jun 2024 14:27:32 +0200 Subject: [PATCH] md5 replaced with xxHash --- src/RobotLoader/RobotLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RobotLoader/RobotLoader.php b/src/RobotLoader/RobotLoader.php index e1f0177..f909422 100644 --- a/src/RobotLoader/RobotLoader.php +++ b/src/RobotLoader/RobotLoader.php @@ -503,7 +503,7 @@ private function generateCacheFileName(): string throw new \LogicException('Set path to temporary directory using setTempDirectory().'); } - return $this->tempDirectory . '/' . md5(serialize($this->generateCacheKey())) . '.php'; + return $this->tempDirectory . '/' . hash(PHP_VERSION_ID < 80100 ? 'md5' : 'xxh128', serialize($this->generateCacheKey())) . '.php'; }