Skip to content

Commit

Permalink
latte: do not yield ElementNode
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed Sep 12, 2023
1 parent c5b4c65 commit 26413d9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Bridge/Nette/Latte/Extension/Node/ImgNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ public function print(PrintContext $context): string
*/
public function &getIterator(): Generator
{
if ($this->element) {
yield $this->element;
}

yield $this->image;
yield $this->arguments;
}
Expand Down

0 comments on commit 26413d9

Please sign in to comment.