You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, currently there is a problem in the implementation of camel cased properties implemented in #326 (the bug is present since 2016).
If you use the command php artisan ide-helper:models, you will generate the docblocks.
If you don't change anything and run the command again, some properties will duplicate (for example, if you have: * @property-read int|null $modelsCount
Every time you run the command it will append to the docblock the same property.
This happens because the method checks if the property is present BEFORE the property is camelCased, therefore, the $name is never in the $properties array, appending the property each time the command is run
Hi, currently there is a problem in the implementation of camel cased properties implemented in #326 (the bug is present since 2016).
If you use the command
php artisan ide-helper:models
, you will generate the docblocks.If you don't change anything and run the command again, some properties will duplicate (for example, if you have:
* @property-read int|null $modelsCount
Every time you run the command it will append to the docblock the same property.
This happens because the method checks if the property is present BEFORE the property is camelCased, therefore, the
$name
is never in the$properties
array, appending the property each time the command is runI will create a pull request fixing this ;)
#881 Fixes the problem
The text was updated successfully, but these errors were encountered: