Skip to content

Commit f8aac11

Browse files
gprolyMiguel Angel
andauthored
Apply suggestion from @devmiguelangel
Co-authored-by: Miguel Angel <miguelangellodev@gmail.com>
1 parent 6af7877 commit f8aac11

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ProcessMaker/Models/ProcessRequestToken.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,8 @@ private function getElementDestinationMustacheContext(): array
14681468
$context['APP_URL'] = config('app.url');
14691469

14701470
// Normalize to plain arrays/scalars so Mustache resolves all keys (common PHP idiom)
1471-
$normalized = json_decode(json_encode($context), true);
1471+
$json = json_encode($context, JSON_THROW_ON_ERROR);
1472+
$normalized = json_decode($json, true, 512, JSON_THROW_ON_ERROR);
14721473

14731474
return is_array($normalized) ? $normalized : [];
14741475
}

0 commit comments

Comments
 (0)