You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get that error just for my project, if I try to generate docs for your cloned phpdoctor it works well.
Here's my config: https://gist.github.com/1069578
The command I run: php phpdoc.php yacms.ini
PS:
This happens in both cases(if I use the archive or git clone)
The text was updated successfully, but these errors were encountered:
I ran into the same issue. The problem is when declaring global constants using the const keyword, PHPDoctor treats this as a class constant and expects a class name to exist as the owner of the constant. This is partly because of an issue with token_get_all() (what PHPDoctor uses to tokenize) and how it parses -- though I reported it as bug #55447 and it was marked as bogus.
The gist you posted shows a problem in global_const.php and looking at the file I can see one constant being declared using the const keyword. A workaround for the time being would be to use define() for all global constants.
Ideally PHPDoctor would need to be modified to make a distinction for the const keyword when not found within a class definition.
Whenever I try to generate my documentation for this project: https://github.com/paullik/yaCMS
I get the following error:
https://gist.github.com/1069566
I get that error just for my project, if I try to generate docs for your cloned phpdoctor it works well.
Here's my config: https://gist.github.com/1069578
The command I run:
php phpdoc.php yacms.ini
PS:
This happens in both cases(if I use the archive or git clone)
The text was updated successfully, but these errors were encountered: