laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Support for `@property` annotation generation on appended attributes

Open CaptainQuirk opened this issue 3 years ago • 3 comments

Versions:

  • ide-helper Version: 2.12.3
  • Laravel Version: 8.75
  • PHP Version: 8.1.1

Question:

Is there a support for appended properties when generating models ?

class MyModel extends Model
{
    /**
     * @var array<int, string>
     */
    protected $appends = ['is_completed'];

    public function isCompleted(): Attribute
    {
        return new Attribute(
            get: fn () => $this->amount !== null,
        );
    }
}

CaptainQuirk avatar Mar 24 '22 10:03 CaptainQuirk

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.

stale[bot] avatar Jul 10 '22 11:07 stale[bot]

Hi,

will this be supported?

schonhoff avatar Jan 06 '23 21:01 schonhoff

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.

stale[bot] avatar Jun 18 '23 08:06 stale[bot]