Skip to content

Commit

Permalink
Merge pull request #33 from brad-jones/master
Browse files Browse the repository at this point in the history
Do no cast to array default passed to `a()` to allow usage of closure as default.
  • Loading branch information
gmazzap committed Mar 1, 2016
2 parents d2b8280 + 1482f54 commit 74ffe5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function raw($var, $default = '', $filter = null)
*/
public function asArray($var, $default = [], $filter = null, $forceRaw = false)
{
$raw = $this->raw($var, (array) $default, $filter);
$raw = $this->raw($var, $default, $filter);

return \Foil\arraize($raw, ($this->autoescape && ! $forceRaw));
}
Expand Down

0 comments on commit 74ffe5d

Please sign in to comment.