phpnsc
phpnsc copied to clipboard
Small tool to check for missing use statements when using PHP namespaces
Currently phpnsc will detect static calls over a classname stored in a string variable and report that the variable name is not a class in the namespace. Example ```php static::$trackedClass::getFieldName($field);...
I ran into an issue where phpnsc incorrectly detects a string as being a class. Code: ```
Have you considered integration with PHPMD? I am interested in helping make this compatible with PHPMD.
Calling `cleanContent` on this file... ```
When i run the tool on files with nowdocs/heredocs containing the words `new foo` then it things `foo` is a classname that is undefined.