diff options
author | wn_ <[email protected]> | 2022-08-12 14:13:26 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2022-08-12 14:13:26 +0000 |
commit | 93fd85df6f73732d3a6ed280d26224e1877c954f (patch) | |
tree | 2b2a4fe2adb98d9e2a975b31069cca7bf66c4a04 /classes/diskcache.php | |
parent | ed2cbeffcc456a86726b52d37c977a35b895968c (diff) |
Switch to direct type declarations of class properties.
Diffstat (limited to 'classes/diskcache.php')
-rw-r--r-- | classes/diskcache.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/classes/diskcache.php b/classes/diskcache.php index 34bba25f1..01c713b99 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', |