-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Versions:
- ide-helper Version: 3.6.0
- Laravel Version: 12.21.0
- PHP Version: 8.4.5
Description:
If you have a class attribute, for example ObservedBy
(Laravel Observers):
#[ObservedBy([ImageObserver::class])]
final class Image extends Model { ... }
Then running php artisan ide-helper:models -RW
adds the PHPDoc between the class and the attribute, causing it to not work with PHPStan/Larastan.
For example:
#[ObservedBy([ImageObserver::class])]
/**
* @property string $name
* @property string $slug
*/
final class Image extends Model
I don't know if this is a bug with IDE Helper, or with Larastan, but it just doesn't work together.