Skip to content

Commit 9dae9a4

Browse files
committed
Fixes and upgrades behat tests for PHP 8
1 parent fd6eefa commit 9dae9a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

features/bootstrap/RestContext.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ public function iRequest($path)
373373
break;
374374
case 'application/xml':
375375
$this->_type = 'xml';
376-
libxml_use_internal_errors(true);
377-
libxml_disable_entity_loader(true);
376+
@libxml_use_internal_errors(true);
377+
if (\LIBXML_VERSION < 20900) {
378+
libxml_disable_entity_loader(true);
379+
}
378380
$this->_data = @simplexml_load_string(
379381
$this->_response->getBody(true)
380382
);

0 commit comments

Comments
 (0)