Skip to content

PHPStorm: Declaration or Usages does not show anything #125

@LordSimal

Description

@LordSimal

PHPantom version

0.8.0

Installation method

Built from source

Operating system

macOS aarch64 (Apple Silicon)

Editor

PHPStorm

Bug description

Usually PHPStorm can show usage for an interface or class via doing CMD + B aka "Decleration or Usages" and show the following diaglog.

Image

But when I do this with the phpantom_lsp attached to PHPStorm it doesn't do anything (other than jump my cursor to the start of the interface name)

Image

You can see the colors for e.g. the comments are different as well, so it does use the new LSP.

Steps to reproduce

Create a EventListenerInterface.php with this content.

<?php
declare(strict_types=1);

namespace Test;

interface EventListenerInterface
{
    public function implementedEvents(): array;
}

create a Test.php with this content.

<?php
declare(strict_types=1);

namespace Test;

class Test implements EventListenerInterface
{
    public function implementedEvents(): array {
        return [];
    }
}

you can do "Go to definition" in that Test.php file when you click on the EventListenerInterface, but the other way around it doesn't see, that Test.php uses that interface.

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions