Skip to content

Commit

Permalink
Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Mar 6, 2024
1 parent 1ce2487 commit e9fa188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StimulusGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(private ?string $targetFolder = null)
$this->targetFolder ??= rtrim(resource_path('js/controllers'), '/');
}

public function create(string $name, string $stub = null, callable $replacementsCallback = null): array
public function create(string $name, ?string $stub = null, ?callable $replacementsCallback = null): array
{
$replacementsCallback ??= fn ($replacements) => $replacements;
$controllerName = $this->controllerName($name);
Expand All @@ -36,7 +36,7 @@ public function create(string $name, string $stub = null, callable $replacements
];
}

public function createStrada(string $prefix, string $name, string $bridgeName = null): array
public function createStrada(string $prefix, string $name, ?string $bridgeName = null): array
{
return $this->create("$prefix/$name", stub: __DIR__.'/../stubs/strada.stub', replacementsCallback: function (array $replacements) use ($bridgeName) {
return array_merge(
Expand Down

0 comments on commit e9fa188

Please sign in to comment.