refactor: remove useless actual args to clearstatcache (#3503)

This commit is contained in:
Dag 2023-07-06 19:39:40 +02:00 committed by GitHub
parent 5e22459eb6
commit 46f0e97c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -49,8 +49,10 @@ class FileCache implements CacheInterface
public function getTime(): ?int
{
// https://www.php.net/manual/en/function.clearstatcache.php
clearstatcache();
$cacheFile = $this->getCacheFile();
clearstatcache(false, $cacheFile);
if (file_exists($cacheFile)) {
$time = filemtime($cacheFile);
if ($time !== false) {