Skip to content

Importing a nullable type doesn't work anymore #833

Closed

Description

@Taluu

For the following piece of code (after latest update) :

<?php
namespace App;

$foo = function(): ?Bar { // let's say Bar is in `App\Foo\Bar`
};

When trying to import the cursor on ?Bar, it says it can't find a class matching ?Bar. If I add a space ? Bar and then try to import Bar, it works as expected.

Activity

  1. changed the title [-]Adding a `use` on a nullable type doesn't work anymore[/-] [+]Importing a nullable type doesn't work anymore[/+] on Oct 23, 2019
  2. added 4 commits that reference this issue on Oct 23, 2019
    db6a50a
    9c82656
    f144613
    f3e8d2f
  3. dantleech commented on Oct 23, 2019

    @dantleech
    Collaborator

    Fixed in master + develop

  4. added a commit that references this issue on Mar 1, 2020
    021fe71
  5. added a commit that references this issue on May 3, 2020
    4fa2345
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