1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-08-06 10:44:04 +00:00

Remove unused $app param and ?BroadcastManager typehint (singleton(...) calls in BroadcastingConfigBootstrapper::revert)

This commit is contained in:
lukinovec 2026-07-10 11:28:09 +02:00
parent a19d3b532f
commit 24aeb23431

View file

@ -111,8 +111,8 @@ class BroadcastingConfigBootstrapper implements TenancyBootstrapper
public function revert(): void
{
// Revert the bound BroadcastManager and Broadcaster singletons back to their original state
$this->app->singleton(BroadcastManager::class, fn (Application $app): ?BroadcastManager => $this->originalBroadcastManager);
$this->app->singleton(Broadcaster::class, fn (Application $app) => $this->originalBroadcaster);
$this->app->singleton(BroadcastManager::class, fn () => $this->originalBroadcastManager);
$this->app->singleton(Broadcaster::class, fn () => $this->originalBroadcaster);
// Clear the resolved Broadcast facade instance so that it gets re-resolved as the central BroadcastManager
Broadcast::clearResolvedInstance();