From 141a1c95c79e15f5f0999e843b4956a1d0034bd0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 11 May 2022 08:59:27 +0300 Subject: hide phpstan warning on 8.0 --- init.php | 3 +++ 1 file changed, 3 insertions(+) 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"])) { -- cgit v1.2.3