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:
/**
* @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_attributeDesired result would be this:
* @property-read array<string, mixed> $example_attributeSource: barryvdh/laravel-ide-helper