From 42fcd0e8b7bda681069a79be1511a2fe407f09fa Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Wed, 18 Mar 2015 00:07:18 +0000 Subject: [PATCH] Fix fileglobalgc unlink parameter warnings --- lib/private/cache/fileglobalgc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/cache/fileglobalgc.php b/lib/private/cache/fileglobalgc.php index 039992718ab..0bd3f73a5aa 100644 --- a/lib/private/cache/fileglobalgc.php +++ b/lib/private/cache/fileglobalgc.php @@ -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); + }); } }