Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Jul 12, 2024
1 parent a2f5a73 commit eaacf38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SlideOverComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ public static function panelMaxWidth(): string

public static function panelMaxWidthClass(): string
{
if (! array_key_exists(SlideOverComponent::panelMaxWidth(), static::$maxWidths)) {
if (! array_key_exists(static::panelMaxWidth(), static::$maxWidths)) {
throw new InvalidArgumentException(
sprintf(
'Panel max width [%s] is invalid. The width must be one of the following [%s].',
SlideOverComponent::panelMaxWidth(),
static::panelMaxWidth(),
implode(', ', array_keys(static::$maxWidths))
),
);
}

return static::$maxWidths[SlideOverComponent::panelMaxWidth()];
return static::$maxWidths[static::panelMaxWidth()];
}

public static function panelPosition(): Position
Expand Down

0 comments on commit eaacf38

Please sign in to comment.