When trying to use a Closure for customizing the actions, it throws a TypeError: "Cannot assign Closure to property Guava\Tutorials\Steps\Step::$nextStepAction of type ?Guava\Tutorials\Filament\TutorialAction"
As mentioned in the Customizing actions section, all four actions accept Closure. Therefore, the corresponding properties should also include Closure in their types.
public function nextStepAction(TutorialAction | Closure | null $action): static
{
$this->nextStepAction = $action;
return $this;
}
When trying to use a
Closure
for customizing the actions, it throws a TypeError: "Cannot assign Closure to property Guava\Tutorials\Steps\Step::$nextStepAction of type ?Guava\Tutorials\Filament\TutorialAction"As mentioned in the Customizing actions section, all four actions accept
Closure
. Therefore, the corresponding properties should also includeClosure
in their types.