Running command 'php artisan make:filament-table <TABLE_NAME>' error

I am having an error when I am trying to create a filament table class for 'ModalSelectTable' , how can I fix this issue? Thank you!
Symfony\Component\ErrorHandler\Error\FatalError

Declaration of Filament\Actions\Concerns\InteractsWithActions::getAction(array|string $actions): ?Filament\Actions\Action must be compatible with Filament\Schemas\Components\Component::getAction(array|string|null $name = null): ?Filament\Actions\Action

at vendor/filament/actions/src/Concerns/InteractsWithActions.php:635
631▕
632▕ /**
633▕ * @param string | array<string> $actions
634▕ */
➜ 635▕ public function getAction(string | array $actions): ?Action
636▕ {
637▕ $actions = array_map(
638▕ fn (string | array $action): array => is_array($action) ? $action : ['name' => $action],
639▕ Arr::wrap($actions),


Whoops\Exception\ErrorException

Declaration of Filament\Actions\Concerns\InteractsWithActions::getAction(array|string $actions): ?Filament\Actions\Action must be compatible with Filament\Schemas\Components\Component::getAction(array|string|null $name = null): ?Filament\Actions\Action

at vendor/filament/actions/src/Concerns/InteractsWithActions.php:635
631▕
632▕ /**
633▕ * @param string | array<string> $actions
634▕ */
➜ 635▕ public function getAction(string | array $actions): ?Action
636▕ {
637▕ $actions = array_map(
638▕ fn (string | array $action): array => is_array($action) ? $action : ['name' => $action],
639▕ Arr::wrap($actions),

+1 vendor frames

2 [internal]:0
Whoops\Run::handleShutdown()
Symfony\Component\ErrorHandler\Error\FatalError

Declaration of Filament\Actions\Concerns\InteractsWithActions::getAction(array|string $actions): ?Filament\Actions\Action must be compatible with Filament\Schemas\Components\Component::getAction(array|string|null $name = null): ?Filament\Actions\Action

at vendor/filament/actions/src/Concerns/InteractsWithActions.php:635
631▕
632▕ /**
633▕ * @param string | array<string> $actions
634▕ */
➜ 635▕ public function getAction(string | array $actions): ?Action
636▕ {
637▕ $actions = array_map(
638▕ fn (string | array $action): array => is_array($action) ? $action : ['name' => $action],
639▕ Arr::wrap($actions),


Whoops\Exception\ErrorException

Declaration of Filament\Actions\Concerns\InteractsWithActions::getAction(array|string $actions): ?Filament\Actions\Action must be compatible with Filament\Schemas\Components\Component::getAction(array|string|null $name = null): ?Filament\Actions\Action

at vendor/filament/actions/src/Concerns/InteractsWithActions.php:635
631▕
632▕ /**
633▕ * @param string | array<string> $actions
634▕ */
➜ 635▕ public function getAction(string | array $actions): ?Action
636▕ {
637▕ $actions = array_map(
638▕ fn (string | array $action): array => is_array($action) ? $action : ['name' => $action],
639▕ Arr::wrap($actions),

+1 vendor frames

2 [internal]:0
Whoops\Run::handleShutdown()
No description
1 Reply
Dennis Koch
Dennis Koch2mo ago
Can you check whether that happens with a fresh install?

Did you find this page helpful?