summaryrefslogtreecommitdiff
path: root/classes/urlhelper.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2022-08-12 14:13:26 +0000
committerwn_ <[email protected]>2022-08-12 14:13:26 +0000
commit93fd85df6f73732d3a6ed280d26224e1877c954f (patch)
tree2b2a4fe2adb98d9e2a975b31069cca7bf66c4a04 /classes/urlhelper.php
parented2cbeffcc456a86726b52d37c977a35b895968c (diff)
Switch to direct type declarations of class properties.
Diffstat (limited to 'classes/urlhelper.php')
-rw-r--r--classes/urlhelper.php33
1 files changed, 8 insertions, 25 deletions
diff --git a/classes/urlhelper.php b/classes/urlhelper.php
index bb51f5d06..da812d422 100644
--- a/classes/urlhelper.php
+++ b/classes/urlhelper.php
@@ -10,31 +10,14 @@ class UrlHelper {
"application/x-bittorrent" => [ "magnet" ],
];
- // TODO: class properties can be switched to PHP typing if/when the minimum PHP_VERSION is raised to 7.4.0+
- /** @var string */
- static $fetch_last_error;
-
- /** @var int */
- static $fetch_last_error_code;
-
- /** @var string */
- static $fetch_last_error_content;
-
- /** @var string */
- static $fetch_last_content_type;
-
- /** @var string */
- static $fetch_last_modified;
-
-
- /** @var string */
- static $fetch_effective_url;
-
- /** @var string */
- static $fetch_effective_ip_addr;
-
- /** @var bool */
- static $fetch_curl_used;
+ static string $fetch_last_error;
+ static int $fetch_last_error_code;
+ static string $fetch_last_error_content;
+ static string $fetch_last_content_type;
+ static string $fetch_last_modified;
+ static string $fetch_effective_url;
+ static string $fetch_effective_ip_addr;
+ static bool $fetch_curl_used;
/**
* @param array<string, string|int> $parts