Skip to content

Commit

Permalink
Don't use magic accessor for class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
RiKap authored May 21, 2018
1 parent 51ea617 commit b1a2c33
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 b1a2c33

Please sign in to comment.