Skip to content

Commit e9fa188

Browse files
committed
Pint
1 parent 1ce2487 commit e9fa188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StimulusGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function __construct(private ?string $targetFolder = null)
1212
$this->targetFolder ??= rtrim(resource_path('js/controllers'), '/');
1313
}
1414

15-
public function create(string $name, string $stub = null, callable $replacementsCallback = null): array
15+
public function create(string $name, ?string $stub = null, ?callable $replacementsCallback = null): array
1616
{
1717
$replacementsCallback ??= fn ($replacements) => $replacements;
1818
$controllerName = $this->controllerName($name);
@@ -36,7 +36,7 @@ public function create(string $name, string $stub = null, callable $replacements
3636
];
3737
}
3838

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

0 commit comments

Comments
 (0)