php-coupling-detector icon indicating copy to clipboard operation
php-coupling-detector copied to clipboard

PHP files without namespaces raise an exception

Open jjanvier opened this issue 6 years ago • 0 comments

for example:

  • an empty php file
  • a procedural php script
  • a class without namespace
In NamespaceExtractor.php line 35:
                                               
  No way to parse the namespace of this class  

we don't know which file, which class, etc...

such nodes are completely valid they should be ignored and should not stop the program

jjanvier avatar Aug 16 '18 15:08 jjanvier