Skip to content

:PhpactorImportClass not finding class , though autocompletion shows the FQDN #1128

@allan-simon

Description

@allan-simon

I'm using the very latest version of phpactor (branch develop) , i'm using it with neovim and coc.vim for the LSP client

phpactor is working fine (i have autocompletion, go to definition etc. working) however PhpactorImportClass is not

given the following code (<> being my cursor position

  declare(strict_types=1);
  
  namespace App\Controller;
                                                                                          
 class StripeWebhookController extends Abstract<>Controller {                                                                                                                                            
                 

}

I then hit :PhpactorImportClass and it tells me

No classes found with name "AbstractController"

However when typing , it does correctly show me the autocompletion

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions