{"record":{"id":"d9ba3072cf15bd66","repo":"filamentphp/filament","slug":"an-attempt-was-made-to-evaluate-a-closure-for-s","errorCode":null,"errorMessage":"An attempt was made to evaluate a closure for [{$staticClass}], but [\\${$parameterName}] was unresolvable.","messagePattern":"An attempt was made to evaluate a closure for \\[(.+?)\\], but \\[\\\\(.+?)\\] was unresolvable\\.","errorType":"exception","errorClass":"BindingResolutionException","httpStatus":null,"severity":"error","filePath":"packages/support/src/Concerns/EvaluatesClosures.php","lineNumber":102,"sourceCode":"\n        if (\n            filled($typedParameterClassName)\n            && (! is_subclass_of($typedParameterClassName, Model::class) || app()->bound($typedParameterClassName))\n        ) {\n            return app()->make($typedParameterClassName);\n        }\n\n        if ($parameter->isDefaultValueAvailable()) {\n            return $parameter->getDefaultValue();\n        }\n\n        if ($parameter->isOptional() || $parameter->allowsNull()) {\n            return null;\n        }\n\n        $staticClass = static::class;\n\n        throw new BindingResolutionException(\"An attempt was made to evaluate a closure for [{$staticClass}], but [\\${$parameterName}] was unresolvable.\");\n    }\n\n    protected function evaluationValueIsFunctionAndHasParameter(mixed $value, string $parameterName): bool\n    {\n        if (! $value instanceof Closure) {\n            return false;\n        }\n\n        foreach ((new ReflectionFunction($value))->getParameters() as $parameter) {\n            if ($parameter->getName() === $parameterName) {\n                return true;\n            }\n        }\n\n        return false;\n    }\n\n    /**","sourceCodeStart":84,"sourceCodeEnd":120,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/support/src/Concerns/EvaluatesClosures.php#L84-L120","documentation":"Error \"An attempt was made to evaluate a closure for [{$staticClass}], but [\\${$parameterName}] was unresolvable.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/support/src/Concerns/EvaluatesClosures.php:102 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"}