diff --git a/sabre/xml/lib/Reader.php b/sabre/xml/lib/Reader.php index 7871a74f5..271ef3262 100644 --- a/sabre/xml/lib/Reader.php +++ b/sabre/xml/lib/Reader.php @@ -56,7 +56,7 @@ public function getClark() public function parse(): array { $previousEntityState = null; - $shouldCallLibxmlDisableEntityLoader = (\LIBXML_VERSION < 20900); + $shouldCallLibxmlDisableEntityLoader = (\PHP_VERSION_ID < 80000); if ($shouldCallLibxmlDisableEntityLoader) { $previousEntityState = libxml_disable_entity_loader(true); }