diff options
author | wn_ <[email protected]> | 2021-11-12 21:17:31 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2021-11-12 21:17:31 +0000 |
commit | d3a81f598b24d6ae4f98415fac9509df6749eaf8 (patch) | |
tree | 79fcdaba8badc193595485c965e6150bcaaecd25 /classes/urlhelper.php | |
parent | 2c41bc7fbc9013e79e929a31e3824cf040afc54a (diff) |
Switch class properties from PHP typing to PHPDoc for compatibility with PHP < 7.4.0
Diffstat (limited to 'classes/urlhelper.php')
-rw-r--r-- | classes/urlhelper.php | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/classes/urlhelper.php b/classes/urlhelper.php index 0592bf28c..351d66b8d 100644 --- a/classes/urlhelper.php +++ b/classes/urlhelper.php @@ -6,14 +6,30 @@ class UrlHelper { "tel" ]; - 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; + // 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; /** * @param array<string, string|int> $parts |