From 6ebd9af226ce39e377090ca7d7d5299c98daa65c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 11 Nov 2024 11:50:25 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/framework --- 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()