Skip to content

Commit

Permalink
Update FilamentShield.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nicko170 authored Dec 11, 2023
1 parent 542ade7 commit a3a9eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilamentShield.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public static function getLocalizedWidgetLabel(string $widget): string

return match (true) {
$widgetInstance instanceof TableWidget => (string) invade($widgetInstance)->makeTable()->getHeading(),
! ($widgetInstance instanceof TableWidget) && $widgetInstance instanceof Widget && method_exists($widgetInstance, 'getHeading') => (string) $widgetInstance->getHeading(),
! ($widgetInstance instanceof TableWidget) && $widgetInstance instanceof Widget && method_exists($widgetInstance, 'getHeading') => (string) invade($widgetInstance)->getHeading(),
default => Str::of($widget)
->after(Utils::getWidgetPermissionPrefix() . '_')
->headline()
Expand Down

0 comments on commit a3a9eae

Please sign in to comment.