fabpot/Twig — comment on commit df47659e9de71a48a24f31ed0cc16a2674a06d43
File:  line 0
By jmikola:

@fabpot: It's possible that `$object` is not an array at this point, which leads to a generic ErrorException for a bad parameter to `array_keys()`. In an environment with strict mode disabled, I saw this behavior when accessing the following deep object:

{{ user.userProgram.program.branding.bodyLinkColor|default('#0a81bf') }}

In this context, `$user->getUserProgram()` was returning null.