Skip to content

Provide more rules around using code marked as @internal #922

@mglaman

Description

@mglaman

Feature request

We have ClassExtendsInternalClassRule, but there should be more rules that act like PHPStan's @api rules: https://github.com/phpstan/phpstan-src/tree/2.1.x/src/Rules/Api

So if calling a method, accessing a constant, etc from something @internal there is an error. Not just when extending the class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions