We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3e7f7f commit bd32014Copy full SHA for bd32014
src/SlugOptions.php
@@ -10,7 +10,7 @@ class SlugOptions
10
/** @var callable */
11
public $extraScopeCallback;
12
13
- /** @var (callable(string $slug, int $iteration): string)|null */
+ /** @var (callable(string, int): string)|null */
14
public $suffixGenerator;
15
16
public string $slugField;
tests/HasSlugTest.php
@@ -354,7 +354,7 @@ public function getSlugOptions(): SlugOptions
354
public function getSlugOptions(): SlugOptions
355
{
356
return parent::getSlugOptions()->usingSuffixGenerator(
357
- fn(string $slug, int $iteration) => 'random-with-access-base-slug-(' . $slug[0] . '_' . $iteration . ')'
+ fn (string $slug, int $iteration) => 'random-with-access-base-slug-(' . $slug[0] . '_' . $iteration . ')'
358
);
359
}
360
};
0 commit comments