Skip to content

Commit c8b6e5f

Browse files
committed
Fix parsing arrays with int keys larger then 9
1 parent b2d44da commit c8b6e5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PHPWeaver/Xtrace/TraceSignatureLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getArrayElements(string $type, bool $xdebug3 = false): array
119119
}
120120

121121
// Find each string|int key followed by double arrow, taking \' into account
122-
$rawSubTypes = preg_split('/(?:, |^)(?:(?:\'.+?(?:(?<!\\\\\\\\)\')+)|\d) => /s', $match[1]);
122+
$rawSubTypes = preg_split('/(?:, |^)(?:(?:\'.+?(?:(?<!\\\\\\\\)\')+)|\d+) => /s', $match[1]);
123123
if (false === $rawSubTypes) {
124124
throw new Exception('Unable to build regex');
125125
}

0 commit comments

Comments
 (0)