Skip to content

How to generate docs for custom date classes? #1732

@joelstein

Description

@joelstein

Versions:

  • ide-helper Version: 3.6.0
  • Laravel Version: 12.28.1
  • PHP Version: 8.4.12

Question:

I have a custom class that extends Carbon. For example:

namespace App\Services;

use Carbon\CarbonImmutable;

class Date extends CarbonImmutable
{
    public function local(): self
    {
        return $this->setTimezone('America/Chicago')->locale('en_US');
    }
}

I then instruct the Date facade to use this class when constructing new dates:

Date::useClass(App\Services\Date::class);

How can I help laravel-ide-helper generate docs for my custom class?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions