nikic / TypeUtil

Utility for adding PHP 7 scalar types and return types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imported classes

polothy opened this issue · comments

Very minor issue. When I was using this, it would generate code like:

use Foo\Bar;

function getBar() : \Foo\Bar
{
    return new Bar();
}

Basically using the fully qualified name instead of just Bar. Sometimes the class isn't imported, so fully qualified is still required.

Feel free to close as "reporter is too lazy" 😉 as I was able to fix this pretty quickly with PHPStorm (you can search for the inspection and then use intentions to fix). Just wasn't sure if this was an easy fix or not.

Cheers and thanks!

This is now implemented: e477396 :)

Fantastic, thank you very much!