Skip to content

helpers are not generated when working with php8.4 attributes #1699

@HichemTab-tech

Description

@HichemTab-tech

Versions:

  • ide-helper Version: v3.5.5
  • Laravel Version: v12.5.0
  • PHP Version: 8.4

Description:

the ide helpers are not generated when working with php 8.4 attributes, for example, scope methods for Models :
this doesn't work

    /**
     * Scope the query to only include drafts.
     */
    #[Scope]
    protected function sortByRequest(Builder $query): void
    {
        //...
    }

but this does work

    /**
     * Scope the query to only include drafts.
     */
    protected function scopeSortByRequest(Builder $query): void
    {
        //...
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions