diff options
Diffstat (limited to 'classes/diskcache.php')
-rw-r--r-- | classes/diskcache.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/classes/diskcache.php b/classes/diskcache.php index 34bba25f1..1df8daf15 100644 --- a/classes/diskcache.php +++ b/classes/diskcache.php @@ -1,15 +1,13 @@ <?php class DiskCache { - // TODO: class properties can be switched to PHP typing if/when the minimum PHP_VERSION is raised to 7.4.0+ - /** @var string */ - private $dir; + private string $dir; /** * https://stackoverflow.com/a/53662733 * * @var array<string, string> */ - private $mimeMap = [ + private array $mimeMap = [ 'video/3gpp2' => '3g2', 'video/3gp' => '3gp', 'video/3gpp' => '3gp', @@ -308,7 +306,7 @@ class DiskCache { if ($fake_extension) $fake_extension = ".$fake_extension"; - header("Content-Disposition: inline; filename=\"${filename}${fake_extension}\""); + header("Content-Disposition: inline; filename=\"{$filename}{$fake_extension}\""); return $this->send_local_file($this->get_full_path($filename)); } |