Skip to content

phpstan-require-* and phpstan-sealed rules not recognized #185

Description

@haase-fabian

PHPantom version

phpantom_lsp 0.8.0-dirty

Installation method

Pre-built binary from GitHub Releases

Operating system

Linux x86_64

Editor

Neovim

Bug description

the phpstan rule for enforcing-class-inheritance-for-interfaces-and-traits and sealed-classes are missing.

missing rules:

  • @phpstan-require-extends
  • @phpstan-require-implements
  • @phpstan-sealed

working rules: (although not highlighted like @var)

Steps to reproduce

<?php

declare(strict_types=1);

use App\ExampleClass;

/**
 * @phpstan-require-extends ExampleClass
 * @phpstan-require-implements ExampleClass
  * @phpstan-sealed ExampleClass
 */
trait Trait {

}

Linting gives: Unused import 'App\ExampleClass' phpantom (unused_import) [5, 1]

Error output or panic trace


.phpantom.toml

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions