From 781a93d72314123d4ddccdb67f7cef34d6a4fe36 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Thu, 23 Mar 2023 15:08:27 +0300 Subject: [PATCH] pkp/pkp#8733 Keep compatibility with PHP 7.x --- classes/cache/FileCache.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/cache/FileCache.inc.php b/classes/cache/FileCache.inc.php index 22d7a7fc737..30f18ff6e60 100644 --- a/classes/cache/FileCache.inc.php +++ b/classes/cache/FileCache.inc.php @@ -51,7 +51,7 @@ function __construct($context, $cacheId, $fallback, $path) { }); try { $this->cache = include $this->filename; - } catch (Exception) { + } catch (Exception $e) { $this->cache = null; } finally { set_error_handler($previousHandler);