Skip to content

Commit

Permalink
event parameter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed May 10, 2024
1 parent 30b6552 commit b34aff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PermanentCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function caches($registeredCaches): self

if ([] !== $events = $cacheInstance->getListenerEvents()) {
foreach($events as $event) {
Event::listen($event, $cacheInstance);
Event::listen($event, fn ($e) => $cacheInstance->handle($e));
}
}

Expand Down

0 comments on commit b34aff3

Please sign in to comment.