Skip to content

AsCollection::of cast not handled #1703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mathieutu opened this issue May 8, 2025 · 0 comments
Open

AsCollection::of cast not handled #1703

mathieutu opened this issue May 8, 2025 · 0 comments
Labels

Comments

@mathieutu
Copy link
Contributor

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.

@mathieutu mathieutu added the bug label May 8, 2025
@mathieutu mathieutu changed the title AsCollection::of not handled AsCollection::of cast not handled May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant