Skip to content

Commit

Permalink
remove unused key definition on foreach loop
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 8, 2017
1 parent 24d25f0 commit 692fe05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function flashMessengerHandler(EventInterface $e)
foreach ($container->getArrayCopy() as $key => $row) {
if ($row instanceof SplQueue) {
$valuesMessage = [];
foreach ($row->toArray() as $keyArray => $rowArray) {
foreach ($row->toArray() as $rowArray) {
$flash->setNamespace($key)->addMessage($rowArray);
$valuesMessage[] = $rowArray;
}
Expand Down

0 comments on commit 692fe05

Please sign in to comment.