diff --git a/Enums/CornerPositionEnum.php b/Enums/CornerPositionEnum.php index 063fc53a..dddcc253 100755 --- a/Enums/CornerPositionEnum.php +++ b/Enums/CornerPositionEnum.php @@ -31,7 +31,7 @@ public function getLabel(): string */ } - public function getColor(): string|array + public function getColor(): string { return match ($this) { self::TOP_LEFT => 'gray', diff --git a/Enums/TableLayoutEnum.php b/Enums/TableLayoutEnum.php index c09a899e..09a19210 100755 --- a/Enums/TableLayoutEnum.php +++ b/Enums/TableLayoutEnum.php @@ -31,7 +31,7 @@ public function getLabel(): string */ } - public function getColor(): string|array + public function getColor(): string { return match ($this) { self::GRID => 'gray', diff --git a/View/Components/Render/Block.php b/View/Components/Render/Block.php index 27aabb93..bcda160d 100755 --- a/View/Components/Render/Block.php +++ b/View/Components/Render/Block.php @@ -46,9 +46,7 @@ public function render(): ViewFactory|View $module = $block->module ?? 'UI'; $module_low = Str::lower($module); - /** - * @phpstan-var view-string|null - */ + $view = $module_low.'::components.blocks.'.$this->tpl; if (! view()->exists((string) $view)) { // throw new \Exception();