Add a PHPStan ignore for a non-issue in 'UrlHelper::fetch()'.

This commit is contained in:
wn_
2025-04-27 15:05:28 +00:00
parent 5c2c95a897
commit 1c9fddd757

View File

@@ -432,6 +432,7 @@ class UrlHelper {
return false;
}
// @phpstan-ignore argument.type (prior validation ensures the host value exists)
self::$fetch_effective_ip_addr = gethostbyname(parse_url(self::$fetch_effective_url, PHP_URL_HOST));
if (!self::$fetch_effective_ip_addr || str_starts_with(self::$fetch_effective_ip_addr, '127.')) {