From 692fe05659050ffed239a5b31f9aae7e103b6149 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 9 Jan 2017 00:52:26 +0700 Subject: [PATCH] remove unused key definition on foreach loop --- src/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module.php b/src/Module.php index 7f951f1..02c606c 100644 --- a/src/Module.php +++ b/src/Module.php @@ -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; }