From 430ae1e6d95079e25968cd0244f0487f8d179712 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:42:46 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/framework (#655) --- src/File.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/File.php b/src/File.php index 04e8da45..f899aee1 100644 --- a/src/File.php +++ b/src/File.php @@ -1518,12 +1518,13 @@ protected function filterFilename($name) }, $parts ?? [])); } - public function flushCache($persistent = true) + public function flushCache($persistent = true): static { parent::flushCache($persistent); static::reset(); ImageShortcodeProvider::flush(); FileShortcodeProvider::flush(); + return $this; } public static function reset()