Skip to content

Commit 8b89947

Browse files
committed
xrdebug 3.0 changes
1 parent a7dc68d commit 8b89947

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/functions.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@ function sign(PrivateKey $privateKey, array $data): string
140140

141141
return base64_encode($signature);
142142
}
143+
144+
/**
145+
* @param array<string, mixed> $data
146+
* @return string Serialized data (key-value pairs concatenated)
147+
*/
148+
function serialize(array $data): string
149+
{
150+
return array_reduce(
151+
array_keys($data),
152+
fn ($acc, $key) => $acc . $key . $data[$key],
153+
''
154+
);
155+
}
143156
}
144157

145158
namespace {

0 commit comments

Comments
 (0)