Skip to content

AsCollection::of cast not handled #1703

Open
@mathieutu

Description

@mathieutu

Versions:

  • ide-helper Version: 3.5.5
  • Laravel Version: 12.13
  • PHP Version: 8.4

Description:

Laravel 12.10 added a AsCollection::of(CustomObject::class) cast.

It is not handled by the IDE Helper, which produce no type for the variable in the docblock.

Steps To Reproduce:

protected function casts(): array
    {
        return [
            'foos' => AsCollection::of(Foo::class),
        ];
    }

I can't take a look for a PR right now, I'll try later.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions