Skip to content

Commit

Permalink
Merge pull request #2 from RiKap/patch-1
Browse files Browse the repository at this point in the history
Don't use magic accessor for class properties
  • Loading branch information
matej21 committed May 21, 2018
2 parents 51ea617 + b1a2c33 commit aef3674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Component/flashMessages.latte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{snippet}
{foreach $flashes as $flash}
<div class='{isset($typeClasses[$flash->type]) ? $typeClasses[$flash->type] : $typeClasses[NULL]}'>
{$flash->message}
<div class='{isset($typeClasses[$flash->getType()]) ? $typeClasses[$flash->getType()] : $typeClasses[NULL]}'>
{$flash->getMessage()}
</div>
{/foreach}
{/snippet}

0 comments on commit aef3674

Please sign in to comment.