Skip to content

Commit 5e3d961

Browse files
committed
Fix parsing arrays with int keys larger then 9
1 parent 2896f2a commit 5e3d961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)