grom358 / pharborist

A PHP library to query and transform source code via tree operations.
GNU General Public License v3.0
44 stars 10 forks source link

Filter::isClass() cannot handle qualified class names #203

Open phenaproxima opened 9 years ago

phenaproxima commented 9 years ago

isClass() doesn't know how to look for a fully-qualified class name, because it calls $class->getName()->getText(). It should also check $class->getName()->getAbsolutePath(), with and without an ltrim() to remove the leading backslash.