Skip to content

Commit 08fd2d3

Browse files
committed
AC-7850: [2.4.6-develop] Build Failures with PHP 8.2
1 parent df4f2d4 commit 08fd2d3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dev/tests/integration/testsuite/Magento/Dhl/Model/CarrierTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,19 @@ public function testRequestToShip(
280280
'store',
281281
null
282282
);
283+
$convmap = [0x80, 0x10FFFF, 0, 0x1FFFFF];
284+
$content = mb_encode_numericentity(
285+
file_get_contents(__DIR__ . '/../_files/response_shipping_label.xml'),
286+
$convmap,
287+
'UTF-8'
288+
);
283289
//phpcs:disable Magento2.Functions.DiscouragedFunction
284290
$this->httpClient->nextResponses(
285291
[
286292
new Response(
287293
200,
288294
[],
289-
mb_convert_encoding(file_get_contents(__DIR__ . '/../_files/response_shipping_label.xml'), 'UTF-8')
295+
$content
290296
)
291297
]
292298
);

0 commit comments

Comments
 (0)