Skip to content

Commit

Permalink
typo [Closes #270]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 25, 2021
1 parent 063df95 commit 475848d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Latte/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function addFilterLoader(callable $callback)
{
$this->filters->add(null, function ($name) use ($callback) {
if ($filter = $callback($name)) {
$this->filters->add($name, $callback($name));
$this->filters->add($name, $filter);
}
});
return $this;
Expand Down

0 comments on commit 475848d

Please sign in to comment.