akeneo / php-coupling-detector

[Experimental] Detect all the coupling issues of your project with respect to the coupling rules you have defined.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP files without namespaces raise an exception

jjanvier opened this issue · 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