fabpot/Twig — comment on commit dfdd555b9a343e35ad4dc6983208fa42adcd3079
File:  line 0
By nikic:

In the added tests `foo` should probably be `bar` (foo is the array, bar is the string) in which case the test will still throw a notice. I think the fix originally proposed on the list, i.e. `is_string($compare) && !empty($value)` should work fine. It will return always `false` for `''`, but I don't think this is wrong.