Skip to content
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

Weak generics on ide-helper:models array types for Attribute #1641

Open
chescos opened this issue Dec 30, 2024 · 0 comments
Open

Weak generics on ide-helper:models array types for Attribute #1641

chescos opened this issue Dec 30, 2024 · 0 comments

Comments

@chescos
Copy link

chescos commented Dec 30, 2024

Similar issue to #1614 but for Attirbute methods.

For example, this:

    /**
     * @return Attribute<array<string, mixed>, never>
     */
    public function exampleAttribute(): Attribute
    {
        return Attribute::make(
            get: fn (): array => ['hello' => 'world'],
        );
    }

Results in this PHPDoc:

 * @property-read array $example_attribute

Desired result would be this:

 * @property-read array<string, mixed> $example_attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant