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

Author: chescosCreated Dec 30, 2024Updated Mar 16, 2026
Labelsenhancement

Similar issue to #1614 but for Attirbute methods.

For example, this:

php
    /**
     * @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

Source: barryvdh/laravel-ide-helper