Skip to content

Commit

Permalink
Fix wrong octane event listener (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 committed Apr 18, 2024
1 parent 536d41d commit a229ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PermissionServiceProvider.php
Expand Up @@ -96,7 +96,7 @@ protected function registerOctaneListener(): void

$dispatcher = $this->app[Dispatcher::class];
// @phpstan-ignore-next-line
$dispatcher->listen(function (\Laravel\Octane\Events\OperationTerminated $event) {
$dispatcher->listen(function (\Laravel\Octane\Contracts\OperationTerminated $event) {
// @phpstan-ignore-next-line
$event->sandbox->make(PermissionRegistrar::class)->setPermissionsTeamId(null);
});
Expand Down

0 comments on commit a229ad5

Please sign in to comment.