diff --git a/Parser/Reader.php b/Parser/Reader.php index 7f6ae7a..a280a48 100644 --- a/Parser/Reader.php +++ b/Parser/Reader.php @@ -53,10 +53,7 @@ public function getSubstring(int $length, int $offset = 0): string return substr($this->source, $this->position + $offset, $length); } - /** - * @return int|false - */ - public function getOffset(string $string): int|bool + public function getOffset(string $string): int|false { $position = strpos($this->source, $string, $this->position); diff --git a/composer.json b/composer.json index c08fdc2..a753a1a 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=8.1" + "php": ">=8.2" }, "autoload": { "psr-4": { "Symfony\\Component\\CssSelector\\": "" },