Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Sep 17, 2024
1 parent 551e83c commit 9b47cf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Enums/CornerPositionEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getLabel(): string
*/
}

public function getColor(): string|array
public function getColor(): string
{
return match ($this) {
self::TOP_LEFT => 'gray',
Expand Down
2 changes: 1 addition & 1 deletion Enums/TableLayoutEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getLabel(): string
*/
}

public function getColor(): string|array
public function getColor(): string
{
return match ($this) {
self::GRID => 'gray',
Expand Down
4 changes: 1 addition & 3 deletions View/Components/Render/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9b47cf6

Please sign in to comment.