Skip to content

Around v2.12.0 @property for custom Castables stopped working #1312

@kwarcu

Description

@kwarcu

In v2.11.0, model like this

class Job extends Model
{
    protected $fillable = [
        'status',
    ];

    protected $casts = [
        'status' => JobStatus::class,
    ];
[...]

would generate phpdoc @property JobStatus $status, but since v2.12.0 it keeps generating @property mixed $status

Exact command I'm using is php artisan ide-helper:models --write --smart-reset

It was fine in v2.11.0, currently using this exact version locked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions