Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonjourney authored and github-actions[bot] committed Feb 27, 2024
1 parent d038e88 commit f3dcb71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Forms/Components/ResourcePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function sortable(bool | Closure $sortable = true): static
return $this;
}

public function relationship(string | Closure $name = null, Closure $modifyQueryUsing = null): static
public function relationship(string | Closure | null $name = null, ?Closure $modifyQueryUsing = null): static
{
$this->relationship = $name ?? $this->getName();

Expand Down
2 changes: 1 addition & 1 deletion src/Support/ResourcePickerConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function __construct(public readonly string $resource, public readonly
{
}

public static function make(string $resource, string $identifier = null): static
public static function make(string $resource, ?string $identifier = null): static
{
return new static($resource, $identifier ?? $resource);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Support/ResourcePickerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getResources(): array
return $this->resources;
}

public function configure(array | string $configurations, Closure $callback = null): static
public function configure(array | string $configurations, ?Closure $callback = null): static
{
if (! is_array($configurations)) {
throw_if(
Expand Down

0 comments on commit f3dcb71

Please sign in to comment.