Skip to content

Commit

Permalink
Update HasChildComponents.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Jan 15, 2025
1 parent 5c55a97 commit 7fc3b1e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ trait HasChildComponents
/**
* @param array<Component> | Closure $components
*/
public function components(array | Closure $components, string $slot = 'default'): static
public function components(array | Closure $components): static
{
$this->childComponents($components, $slot);
$this->childComponents($components);

return $this;
}
Expand All @@ -36,9 +36,9 @@ public function childComponents(array | Closure $components, string $slot = 'def
/**
* @param array<Component> | Closure $components
*/
public function schema(array | Closure $components, string $slot = 'default'): static
public function schema(array | Closure $components): static
{
$this->childComponents($components, $slot);
$this->childComponents($components);

return $this;
}
Expand Down

0 comments on commit 7fc3b1e

Please sign in to comment.