In PHP 8.0 and later, PHP uses libxml versions from 2.9.0, libxml_disable_entity_loader is deprecated.so it is now safe to remove all `libxml_disable_entity_loader` calls on php8if you want Backwards Compatibilityuse this snippetif (\PHP_VERSION_ID < 80000) { libxml_disable_entity_loader(true);}