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 880daa5 commit e700691Copy full SHA for e700691
src/OnboardingSteps.php
@@ -10,14 +10,14 @@ class OnboardingSteps
10
/** @var array<OnboardingStep> */
11
protected array $steps = [];
12
13
- public function addStep(string $title, string $model = null): OnboardingStep
+ public function addStep(string $title, ?string $model = null): OnboardingStep
14
{
15
$step = new OnboardingStep($title);
16
17
return $this->addingStep($step, $model);
18
}
19
20
- public function addingStep(OnboardingStep $step, string $model = null): OnboardingStep
+ public function addingStep(OnboardingStep $step, ?string $model = null): OnboardingStep
21
22
if ($model && new $model() instanceof Onboardable) {
23
return $this->steps[$model][] = $step;
0 commit comments