Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make yaml_decode only return array to avoid errors #2494

Merged
merged 1 commit into from
May 7, 2019
Merged

Make yaml_decode only return array to avoid errors #2494

merged 1 commit into from
May 7, 2019

Conversation

newbthenewbd
Copy link
Contributor

With the recent updates, the decode() PHP function, used for the yaml_decode twig filter, has been given the return type of array. Despite of that, the function may actually return a string. This pull request aims to correct that.

Despite of how small the change is, I believe that the issue should be assigned a high priority, as it may cause many current usecases of yaml_decode to return a cryptic server error.

@mahagr mahagr merged commit 48c9176 into getgrav:develop May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants