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()