diff --git a/src/Document.php b/src/Document.php index b825ca3..7d08e6d 100644 --- a/src/Document.php +++ b/src/Document.php @@ -90,19 +90,7 @@ public function query(string $expression, ?DOMNode $contextNode = null, bool $re protected function needsWorkarounds(): bool { - if (version_compare(PHP_VERSION, '8.1.23', '<')) - { - // Anything before 8.1.23 requires workarounds - return true; - } - if (version_compare(PHP_VERSION, '8.2.10', '>=')) - { - // Anything from 8.2.10 onwards is fine - return false; - } - - // 8.2.0 to 8.2.9 need workarounds, but ^8.1.23 does not - return version_compare(PHP_VERSION, '8.2.0-dev', '>='); + return version_compare(PHP_VERSION, '8.3.0', '<'); } /**