Wizard Step type error

I have gone through the video on Dans youtube showing how to implement the wizard, however when i go to the create page it gives me this error.

App\Filament\Resources\ProjectsResource\Pages\CreateProjects::{closure}(): Argument #1 ($step) must be of type Filament\Forms\Components\Wizard\Step, Filament\Forms\Components\Wizard given

I went back through the video and the wizard documentation page and i don't understand what i am doing wrong.
Solution
public function getSteps(): array
{
    return [
        Wizard\Step::make('Order')
            ->schema([
                TextInput::make('name')->required(),

            ]),
        Wizard\Step::make('Delivery')
            ->schema([
                TextInput::make('email')->required(),
            ]),
        Wizard\Step::make('Billing')
            ->schema([
                TextInput::make('phone')->required(),
            ]),
    ];
}
Was this page helpful?