Strip $ instead of replace to match SDK models

This commit is contained in:
Jake Barnby 2022-10-20 15:29:56 +13:00
parent 6a4f3d6a6b
commit 19123257fc
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -290,7 +290,7 @@ class Resolvers
foreach ($payload as $key => $value) {
if (\str_starts_with($key, '$')) {
$escapedKey = \str_replace('$', '_', $key);
$escapedKey = \str_replace('$', '', $key);
$payload[$escapedKey] = $value;
unset($payload[$key]);
}