-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
barryvdh/ReflectionDocBlock
#16Labels
Description
Versions:
- ide-helper Version: dev-master 6336db0
- Laravel Version: 10.22.0
- PHP Version: 8.2.4
Description:
After specifying the key and value type for an Eloquent Model's array @property and adding a comment after that - it duplicates the property.
Steps To Reproduce:
- have the Models that has an array or json column (eg Client model has
address_valuesproperty that is json typed in DB); - run
php artisan ide-helper:models App\\Models\\Client --write; - check that your Client model's phpDoc now has
@property array|null $address_values; - specify array key-value types and add a summary for the property -
@property array<string, string>|null $address_values some description; - run
php artisan ide-helper:models App\\Models\\Client --write; - check that it now added / duplicated the
$address_valuesproperty.
It works as expected for these variants:
@property array|null $address_values some description-- no array key-value types;@property array<string, string>|null $address_values-- no description / summary / text after the property name.
Expected behavior is to be able to add both array's key-value types and description (I write some examples there).