researchgate / phpnsc

Small tool to check for missing use statements when using PHP namespaces
MIT License
43 stars 4 forks source link

Does not detect `use $foo as $bar` #2

Closed beberlei closed 10 years ago

beberlei commented 11 years ago

The following will be detected as error:

use Foo as Bar;

class Foo extends Bar
{
}
bashofmann commented 11 years ago

This actually should work and should be covered as we are doing something like this a few times as well. I'll have a short look at it in the next days. Probably just a tiny thing that can be fixed or added without rewriting it completely to use php-parser