barryvdh/laravel-ide-helper — pull request #148 by BaldaI (2015-01-01 04:25:17+00:00)
Title: Fixed class name resolution via get_class() and static::class.

Hi Barry.

My Base Model has a some of relations:
```php
/**
* Relation to the parent.
*
* @return BelongsTo
*/
public function parent()
{
return $this->belongsTo(static::class, static::PARENT_ID);
}

/**
* Relation to children.
*
* @return HasMany
*/
public function children()
{
return $this->hasMany(get_class($this), static::PARENT_ID);
}
```

Incorrect result of `./artisan ide-helper:models -W` command:
```php
/**
* ModelName
*
* @property-read static $parent
* @property-read \Illuminate\Database\Eloquent\Collection|\get_class($this)[] $children
*/
```
Expected result:
```php
/**
* ModelName
*
* @property-read ModelName $parent
* @property-read \Illuminate\Database\Eloquent\Collection|ModelName[] $children
*/
```

Attached patch fix this.