Skip to content

Filter 'foo' is not defined bug - it just returns void #92

@paveljanda

Description

@paveljanda

Let's have an example in template:

{var $s = 'Hello'}
{$s|foo}

And filter defined:

public static function foo($bar)
{
    if ($bar === 'Hello') {
        return $bar;
    }
}

That works well, but when we change the condition in filter to if ($bar === 'Helloooo') {, latte says that that filter is not defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions