Skip to content

Commit

Permalink
Fixes and upgrades behat tests for PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Arul- committed Dec 10, 2020
1 parent fd6eefa commit 9dae9a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions features/bootstrap/RestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ public function iRequest($path)
break;
case 'application/xml':
$this->_type = 'xml';
libxml_use_internal_errors(true);
libxml_disable_entity_loader(true);
@libxml_use_internal_errors(true);
if (\LIBXML_VERSION < 20900) {
libxml_disable_entity_loader(true);
}
$this->_data = @simplexml_load_string(
$this->_response->getBody(true)
);
Expand Down

0 comments on commit 9dae9a4

Please sign in to comment.