Skip to content

Rector sees Eloquent relation as scope and changes method visibility #379

@MatasElectronics

Description

@MatasElectronics

On one of our projects Rector created a bug where it saw an Eloquent relation called scope as a query scope, and thus changed the method visibility to protected as part of the MakeMOdelAttributesAndScopesProtectedRector rule.

Of course this is undesired behavior and we had to roll that change back. Sadly I now have to skip this rule on then entire model, because it seems in Rector it is not possible to skip only a given line or method.

Image

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