Skip to content

Commit e700691

Browse files
Add explicit nullable type
1 parent 880daa5 commit e700691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OnboardingSteps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class OnboardingSteps
1010
/** @var array<OnboardingStep> */
1111
protected array $steps = [];
1212

13-
public function addStep(string $title, string $model = null): OnboardingStep
13+
public function addStep(string $title, ?string $model = null): OnboardingStep
1414
{
1515
$step = new OnboardingStep($title);
1616

1717
return $this->addingStep($step, $model);
1818
}
1919

20-
public function addingStep(OnboardingStep $step, string $model = null): OnboardingStep
20+
public function addingStep(OnboardingStep $step, ?string $model = null): OnboardingStep
2121
{
2222
if ($model && new $model() instanceof Onboardable) {
2323
return $this->steps[$model][] = $step;

0 commit comments

Comments
 (0)