Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Dec 17, 2023
1 parent 6245717 commit f8611ff
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '<');
}

/**
Expand Down

0 comments on commit f8611ff

Please sign in to comment.