App\Filament\Pages\Tenancy\EditTeamProfile does not implement methods 'getAction', 'getAct

I have this page to edit tenants (copied from the docs):

<?php

namespace App\Filament\Pages\Tenancy;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile;

class EditTeamProfile extends EditTenantProfile
{
    public static function getLabel(): string
    {
        return 'Team profile';
    }

    public function form(Form $form): Form
    {
        return $form
            ->schema([
                TextInput::make('name'),
                TextInput::make('avatar_url'),
            ]);
    }
}


The error says I haven't implemented required classes.
To “fix” this error, I've created the following:

<?php

namespace App\Filament\Pages\Tenancy;

use Filament\Actions\Action;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile;

class EditTeamProfile extends EditTenantProfile
{

    public function getAction(string|array $name): ?Action
    {
        return Action::make('placeholder');
    }

    public function getActiveActionsLocale(): ?string
    {
        return 'nl_NL';
    }

    public static function getLabel(): string
    {
        return __('Team profile');
    }

    public function form(Form $form): Form
    {
        return $form
            ->schema([
                TextInput::make('name'),
                TextInput::make('avatar_url'),
            ]);
    }
}
Solution
Oh my bad, my IDE might have indexed the files wrong. After removing the methods and reloading a couple times everything still worked.
Was this page helpful?