From b30ce92d58752a8b753c38302a7b21916675fa1a Mon Sep 17 00:00:00 2001 From: supahgreg Date: Sat, 18 Oct 2025 01:42:29 +0000 Subject: [PATCH] Rector rule 'StrStartsWithRector'. https://getrector.com/rule-detail/str-starts-with-rector --- classes/RSSUtils.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php index aa4a89244..263a4949d 100644 --- a/classes/RSSUtils.php +++ b/classes/RSSUtils.php @@ -1809,8 +1809,7 @@ class RSSUtils { } static function is_gzipped(string $feed_data): bool { - return strpos(substr($feed_data, 0, 3), - "\x1f" . "\x8b" . "\x08", 0) === 0; + return str_starts_with(substr($feed_data, 0, 3), "\x1f" . "\x8b" . "\x08"); } /**