phpdox icon indicating copy to clipboard operation
phpdox copied to clipboard

Namespace Error [fDOMDocument.php:525]

Open leandromacedo opened this issue 6 years ago • 1 comments
trafficstars

Hi,

First of all, thanks for this great tool. It has been really handy in our project. We started using it recently but a strange bug is happening and I wasn't able to debug it.

When I run the phpdox command, I get:

[28.08.2019 - 09:43:55] The following file(s) had errors during processing and were excluded:
[28.08.2019 - 09:43:55]  - /srv/fence/fence/source/JReader.php (Namespace Error [fDOMDocument.php:525])
[28.08.2019 - 09:43:55]  - /srv/fence/fence/source/JProcessor.php (Namespace Error [fDOMDocument.php:525])

Both files have the proper namespace like the other files, so I checked fDOMDocument.php and it seems to be a problem in the DOMDocument::createElementNS() call. Any idea of why this is happening? I tried to change the name of these classes and files but the error persists.

As example, one of the namespace declaration is just:

<?php
namespace Fence;

class JProcessor
{
   // ...
}

Sorry if this was already answered somewhere else, I tried to search but didn't find anything.

Thanks a lot for your time.

leandromacedo avatar Aug 28 '19 10:08 leandromacedo

Not sure if this issue is still relevant. Sorry for taking so long to notice it.

I cannot reproduce this though by quickly dumping your example into a test. Do you have any more pointers? :)

theseer avatar Nov 29 '21 19:11 theseer