From eaacf38da9bf159707b1f66a08f06361df2299a8 Mon Sep 17 00:00:00 2001 From: Arthur Monney Date: Sat, 13 Jul 2024 01:00:38 +0200 Subject: [PATCH] wip --- src/SlideOverComponent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SlideOverComponent.php b/src/SlideOverComponent.php index bc4b796..12cbab1 100644 --- a/src/SlideOverComponent.php +++ b/src/SlideOverComponent.php @@ -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