Fix fileglobalgc unlink parameter warnings
This commit is contained in:
parent
c69cd28a73
commit
42fcd0e8b7
|
@ -48,6 +48,8 @@ class FileGlobalGC extends Job {
|
|||
return;
|
||||
}
|
||||
$paths = $this->getExpiredPaths($cacheDir, $now);
|
||||
array_walk($paths, 'unlink');
|
||||
array_walk($paths, function($file) {
|
||||
unlink($file);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue