We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f37ca commit fa468e2Copy full SHA for fa468e2
src/PackStream/v1/Packer.php
@@ -186,7 +186,7 @@ private function packMap(array $arr): string
186
}
187
188
foreach ($arr as $k => $v) {
189
- $output .= $this->p($k);
+ $output .= $this->p((string)$k); // The key names in a map must be of type String.
190
$output .= $this->p($v);
191
192
0 commit comments