Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 2ed7a0e

Browse files
committed
Change chr(10) to "\n"
1 parent 8b10abf commit 2ed7a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProblemDetailsResponseFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ private function cleanKeysForXml(array $input): array
318318
{
319319
$return = [];
320320
foreach ($input as $key => $value) {
321-
$key = str_replace(chr(10), '_', $key);
321+
$key = str_replace("\n", '_', $key);
322322
$startCharacterPattern =
323323
'[A-Z]|_|[a-z]|[\xC0-\xD6]|[\xD8-\xF6]|[\xF8-\x{2FF}]|[\x{370}-\x{37D}]|[\x{37F}-\x{1FFF}]|'
324324
. '[\x{200C}-\x{200D}]|[\x{2070}-\x{218F}]|[\x{2C00}-\x{2FEF}]|[\x{3001}-\x{D7FF}]|[\x{F900}-\x{FDCF}]'

0 commit comments

Comments
 (0)