Skip to content

Commit be69f0e

Browse files
committed
fix rector
1 parent 7dffe1e commit be69f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Internal/Service/DispatcherService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function dispatch(EventInterface $event): void
2727

2828
public function flush(): void
2929
{
30-
foreach ($this->events as $event => $value) {
30+
foreach (array_keys($this->events) as $event) {
3131
$this->dispatcher->flush($event);
3232
}
3333

@@ -37,7 +37,7 @@ public function flush(): void
3737

3838
public function forgot(): void
3939
{
40-
foreach ($this->events as $event => $value) {
40+
foreach (array_keys($this->events) as $event) {
4141
$this->dispatcher->forget($event);
4242
}
4343

0 commit comments

Comments
 (0)