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'; }