Skip to content

Cannot import a class if there is a trailing comma #851

Closed
phpactor/text-document
#2

Description

@einenlum

Given:

    public function test(AppDepl<>oymentSet, \Exception $e)
    {

    }

If I try to import the class, it says:

No classes found with name "AppDeploymentSet,"
In this case I need to first create a space between the class name and the comma like this:

    public function test(AppDepl<>oymentSet , \Exception $e)
    {

    }

And then it works.

Activity

  1. dantleech commented on Dec 4, 2019

    @dantleech
    Collaborator
  2. einenlum commented on Dec 4, 2019

    @einenlum
    CollaboratorAuthor

    @dantleech Yep, sent a PR above, before your comment ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions