Skip to content

Facade macro not generating #1725

@WalterWoshid

Description

@WalterWoshid

Versions:

  • ide-helper Version: 3.6.0
  • Laravel Version: 12.22.1
  • PHP Version: 8.4.11

Description:

class MyService
{
    use Macroable;

    // ...
}

class MyFacade extends Facade
{
    protected static function getFacadeAccessor(): string
    {
        return MyService::class;
    }
}

class MyServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        MyFacade::macro(
            name: 'myMethod',
            macro: function (): void {
                dd("TEST");
            },
        );
    }
}

It generates a helper for MyService::myMethod(), but not for MyFacade::myMethod().

Probably gonna open a PR in a couple of hours for a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions