Skip to content

Conversation

codders
Copy link
Contributor

@codders codders commented Jun 30, 2025

Mustache variables may resolve to non-string elements in the PHP variables supplied to the template. This currently causes an error as str_replace will only replace a string with another string.

Add some basic support for more complex data, converting complex data types into their JSON representation before substituting them into the template.

Bug: T398192

Mustache variables may resolve to non-string elements in the PHP
variables supplied to the template. This currently causes an error
as `str_replace` will only replace a string with another string.

Add some basic support for more complex data, converting complex
data types into their JSON representation before substituting them
into the template.

Bug: T398192
@yerdua yerdua merged commit bd7e899 into master Jul 2, 2025
8 checks passed
@yerdua yerdua deleted the feat/handle-array-type-value-substitution-20250630 branch July 2, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants