filamentphp/filament · error · BindingResolutionException

An attempt was made to evaluate a closure for [{$staticClass

Error message

An attempt was made to evaluate a closure for [{$staticClass}], but [\${$parameterName}] was unresolvable.

What it means

Error "An attempt was made to evaluate a closure for [{$staticClass}], but [\${$parameterName}] was unresolvable." thrown in filamentphp/filament.

Source

Thrown at packages/support/src/Concerns/EvaluatesClosures.php:102

        if (
            filled($typedParameterClassName)
            && (! is_subclass_of($typedParameterClassName, Model::class) || app()->bound($typedParameterClassName))
        ) {
            return app()->make($typedParameterClassName);
        }

        if ($parameter->isDefaultValueAvailable()) {
            return $parameter->getDefaultValue();
        }

        if ($parameter->isOptional() || $parameter->allowsNull()) {
            return null;
        }

        $staticClass = static::class;

        throw new BindingResolutionException("An attempt was made to evaluate a closure for [{$staticClass}], but [\${$parameterName}] was unresolvable.");
    }

    protected function evaluationValueIsFunctionAndHasParameter(mixed $value, string $parameterName): bool
    {
        if (! $value instanceof Closure) {
            return false;
        }

        foreach ((new ReflectionFunction($value))->getParameters() as $parameter) {
            if ($parameter->getName() === $parameterName) {
                return true;
            }
        }

        return false;
    }

    /**

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/support/src/Concerns/EvaluatesClosures.php:102 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17). Data as JSON: /api/errors/d9ba3072cf15bd66. Report an issue: GitHub.