Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Warning: count(): Parameter must be an array or an object that implements Countable #883

Closed
Azraelir opened this issue Apr 27, 2019 · 2 comments

Comments

@Azraelir
Copy link

An exception has been thrown during the rendering of a template ("Warning: count(): Parameter must be an array or an object that implements Countable").
500 Internal Server Error - Twig_Error_Runtime
1 linked Exception: ContextErrorException »

I encounter this issue in symfony 3.1.10 and PHP 7.2(x64) with "dev-master" branch.
if i switch to PHP 5.6 all is well and bundle does work.

any idea how to solve this?

@Azraelir
Copy link
Author

it seems that this error is the same as:

#812 (comment)

but no solution so far.

@Azraelir
Copy link
Author

updating the twig solved the problem.

Updating twig/twig (v1.31.0 => v1.39.1)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant