{"record":{"id":"5be0bc3e7e2cd02d","repo":"filamentphp/filament","slug":"table-header-actions-must-be-an-instance-of-acti","errorCode":null,"errorMessage":"Table header actions must be an instance of [{Action}], [{BulkAction}] or [{ActionGroup}].","messagePattern":"Table header actions must be an instance of \\[(.+?)\\], \\[(.+?)\\] or \\[(.+?)\\]\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"packages/tables/src/Table/Concerns/HasHeaderActions.php","lineNumber":77,"sourceCode":"        return $this;\n    }\n\n    /**\n     * @param  array<Action | BulkAction | ActionGroup> | ActionGroup  $actions\n     */\n    public function pushHeaderActions(array | ActionGroup $actions): static\n    {\n        foreach (Arr::wrap($actions) as $action) {\n            $action->table($this);\n\n            if ($action instanceof ActionGroup) {\n                foreach ($action->getFlatActions() as $flatAction) {\n                    $this->cacheAction($flatAction);\n                }\n            } elseif ($action instanceof Action) {\n                $this->cacheAction($action);\n            } else {\n                throw new InvalidArgumentException('Table header actions must be an instance of [' . Action::class . '], [' . BulkAction::class . '] or [' . ActionGroup::class . '].');\n            }\n\n            $this->headerActions[] = $action;\n        }\n\n        return $this;\n    }\n\n    public function getHeaderActionsPosition(): HeaderActionsPosition\n    {\n        $position = $this->evaluate($this->headerActionsPosition);\n\n        if (filled($position)) {\n            return $position;\n        }\n\n        return HeaderActionsPosition::Adaptive;\n    }","sourceCodeStart":59,"sourceCodeEnd":95,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/tables/src/Table/Concerns/HasHeaderActions.php#L59-L95","documentation":"Error \"Table header actions must be an instance of [{Action}], [{BulkAction}] or [{ActionGroup}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/tables/src/Table/Concerns/HasHeaderActions.php:77 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}