filamentphp/filament · error · BadMethodCallException

Method %s::%s does not exist.

Error message

Method %s::%s does not exist.

What it means

Error "Method %s::%s does not exist." thrown in filamentphp/filament.

Source

Thrown at packages/support/src/Concerns/Macroable.php:55

    public static function flushMacros(): void
    {
        static::$macros = [];
    }

    public static function hasMacro(string $name): bool
    {
        return (bool) static::getMacro($name);
    }

    /**
     * @param  array<array-key>  $parameters
     */
    public static function __callStatic(string $method, array $parameters): mixed
    {
        $macro = static::getMacro($method);

        if ($macro === null) {
            throw new BadMethodCallException(sprintf(
                'Method %s::%s does not exist.',
                static::class,
                $method,
            ));
        }

        if ($macro instanceof Closure) {
            $macro = $macro->bindTo(null, static::class);
        }

        return $macro(...$parameters);
    }

    /**
     * @param  array<array-key>  $parameters
     */
    public function __call(string $method, array $parameters): mixed
    {

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/support/src/Concerns/Macroable.php:55 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/0b93e8de8f5467bd. Report an issue: GitHub.