Skip to content

Commit

Permalink
Merge pull request #15542 from erikgaal/patch-1
Browse files Browse the repository at this point in the history
filament() helper return types
  • Loading branch information
danharrin authored Feb 6, 2025
2 parents 229437c + a313eff commit 6a03e69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/panels/src/global_helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
use Filament\FilamentManager;

if (! function_exists('filament')) {
/**
* @return ($plugin is null ? FilamentManager : Plugin)
*/
function filament(?string $plugin = null): FilamentManager | Plugin
{
/** @var FilamentManager $filament */
Expand Down

0 comments on commit 6a03e69

Please sign in to comment.