Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix json_decode Twig filter #3722

Merged
merged 1 commit into from
Jan 26, 2019

Conversation

AugustMiller
Copy link
Contributor

Looks like the docs for this were correct (that it called Json::decode(...)), but the actual method name was still just the raw PHP function name.

See the original PR: #3678

@brandonkelly brandonkelly merged commit 2ade2d2 into craftcms:develop Jan 26, 2019
@brandonkelly
Copy link
Member

Doh, thanks!

@boboldehampsink
Copy link
Contributor

Ah, just wanted to create an issue. I'm seeing

yii\base\ErrorException: call_user_func_array() expects parameter 1 to be a valid callback, class 'craft\helpers\Json' does not have a method 'json_decode' in

But I guess this fixes it

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants