Skip to content

Commit

Permalink
PHP 8 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Moustafa22 committed Sep 18, 2021
1 parent aa7ebcc commit 3287096
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Helpers/AramexHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ public static function getSoapClient($type)
else if (config('aramex.ENV') != 'LIVE'){
throw new \Exception("Aramex ENV is invalid, Available values: 'TEST','LIVE' Check your config file 'config\aramex.php' ", 1);
}
libxml_disable_entity_loader(false);


if (\PHP_VERSION_ID < 80000) {
libxml_disable_entity_loader(true);
}

switch ($type) {
case self::SHIPPING:
Expand Down

0 comments on commit 3287096

Please sign in to comment.