diff --git a/packages/panels/src/FilamentManager.php b/packages/panels/src/FilamentManager.php index 1f9f9e02ee..d20e2a41a6 100644 --- a/packages/panels/src/FilamentManager.php +++ b/packages/panels/src/FilamentManager.php @@ -279,7 +279,7 @@ class FilamentManager return $this->getCurrentPanel()->getPages(); } - public function getPanel(string $id = null): Panel + public function getPanel(?string $id = null): Panel { return app(PanelRegistry::class)->get($id); } @@ -375,7 +375,7 @@ class FilamentManager /** * @param array $parameters */ - public function getTenantBillingUrl(array $parameters = [], Model $tenant = null): ?string + public function getTenantBillingUrl(array $parameters = [], ?Model $tenant = null): ?string { return $this->getCurrentPanel()->getTenantBillingUrl($tenant ?? $this->getTenant(), $parameters); } @@ -509,7 +509,7 @@ class FilamentManager return $tenants; } - public function getUrl(Model $tenant = null): ?string + public function getUrl(?Model $tenant = null): ?string { return $this->getCurrentPanel()->getUrl($tenant); } @@ -818,7 +818,7 @@ class FilamentManager * * @param string | array $theme */ - public function registerViteTheme(string | array $theme, string $buildDirectory = null): void + public function registerViteTheme(string | array $theme, ?string $buildDirectory = null): void { try { $this->getDefaultPanel()->viteTheme($theme, $buildDirectory); @@ -865,7 +865,7 @@ class FilamentManager return $this->getCurrentPanel()->arePasswordsRevealable(); } - public function getCurrentDomain(string $testingDomain = null): string + public function getCurrentDomain(?string $testingDomain = null): string { if (filled($this->currentDomain)) { return $this->currentDomain;