Skip to content

missing end of a HTML tag results in Server error without description what is the problem #329

@forgie1

Description

@forgie1

Version: 3.0.5

Bug Description

<td><a href="mailto:{$owner->getEmail()}" {$owner->getEmail()}</td>
Ends with:
Latte\CompileException
Thrown exception 'Call to a member function isEnd() on null' (in '....latte')

in file:
\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:89

83:        public function parseFragment(callable $resolver, callable $after = null): FragmentNode
84:        {
85:            $res = new FragmentNode;
86:            $save = [$this->lastResolver, $this->tag];
87:            $this->lastResolver = $resolver;
88:            try {
89:                while (!$this->stream->peek()->isEnd()) {

Expected Behavior

It would be nice if message of the server error would have description that end <a> tag is missing in the specified template

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