summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-05-11 08:59:27 +0300
committerAndrew Dolgov <[email protected]>2022-05-11 08:59:27 +0300
commit141a1c95c79e15f5f0999e843b4956a1d0034bd0 (patch)
treed3f555a9fe11fb4f939d3bacb61ddf228105d6be
parentee13d027e90d7304469904fc2af622eecace548f (diff)
hide phpstan warning on 8.0
-rw-r--r--init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.php b/init.php
index 32ae22e..83d8ce6 100644
--- a/init.php
+++ b/init.php
@@ -61,6 +61,9 @@ class Af_Enclosure_Fix_Type extends Plugin {
if (!is_array($enabled_feeds) || array_search($feed, $enabled_feeds) === FALSE)
return $enc;
+ // TODO: php7 compatibility needs to be officially dropped at some point
+
+ // @phpstan-ignore-next-line
$headers = get_headers($enc->link, 1);
if (is_array($headers) && isset($headers["Content-Type"])) {