Rector rule 'StrStartsWithRector'.

https://getrector.com/rule-detail/str-starts-with-rector
This commit is contained in:
supahgreg 2025-10-18 01:42:29 +00:00
parent 77c9098dd3
commit b30ce92d58
No known key found for this signature in database

View File

@ -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");
}
/**