Skip to content

Commit

Permalink
Allow null values
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Jul 30, 2024
1 parent 042fd58 commit 32ecbc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Discover/ComponentStructureScout.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ protected function definition(): Discover
->full();
}

public function prefix(string $prefix): static
public function prefix(?string $prefix = null): static
{
$this->prefix = trim($prefix, '-');

return $this;
}

public function path(string $path): static
public function path(?string $path = null): static
{
$this->path = $path;

Expand Down

0 comments on commit 32ecbc3

Please sign in to comment.