phpnsc icon indicating copy to clipboard operation
phpnsc copied to clipboard

Small tool to check for missing use statements when using PHP namespaces

Results 5 phpnsc issues
Sort by recently updated
recently updated
newest added

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.

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.