From d344c561cf8b91a81da387f0755ad3342570b31e Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Wed, 19 Mar 2025 22:40:15 +0100 Subject: [PATCH] [TASK] Drop the unused `ParserState::strpos()` method --- src/Parsing/ParserState.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index 88f533a8..e90650d5 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -461,14 +461,4 @@ private function strsplit(string $string): array return $result; } - - /** - * @return int<0, max>|false - */ - private function strpos(string $haystack, string $needle, int $offset) - { - return $this->parserSettings->hasMultibyteSupport() - ? \mb_strpos($haystack, $needle, $offset, $this->charset) - : \strpos($haystack, $needle, $offset); - } }