Fix fileglobalgc unlink parameter warnings

This commit is contained in:
Robin McCorkell 2015-03-18 00:07:18 +00:00
parent c69cd28a73
commit 42fcd0e8b7
1 changed files with 3 additions and 1 deletions

View File

@ -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);
});
}
}