-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpDocumentor bug #85
Comments
Braking PHP features, just to have auto generating documentation doesn't sounds good.. If phpDocumentor is not PHP 7 ready the best thing is not to use it. |
@sv3tli0 What I have done doesn't break anything, it just doesn't exploit the return type hinting in PHP7. The code is eminently functional as is, and the PHPdocs will be accurate. We made a conscious decision to use phpdoc to generate the API documentation, because it is so onerous to include it in the user guide. phpDocumentor is the best (only?) tool I have found for that. |
The idea is fine but until this next version which supports PHP 7 is out this should be waiting to be added. |
@sv3tli0 I agree it could be a long time before phpDocumentor is "complete". |
phpDocumentor v2.9.0 has fixed the problem :) |
True.. I read about this new version earlier today but I haven't tested it to comment it. |
phpDocumentor2 does not properly recognize the hinted return type in PHP7.
In order to generate phpdocs for CI4, the return types in method signatures have been commented out for now. They can be restored using a global search & replace once phpDocumentor has addressed their issue.
Desired: function banana(): fruit
Workaround: function banana()//: fruit
Or, for an interface...
Desired: function banana(): fruit;
Workaround: function banana();//: fruit;
The text was updated successfully, but these errors were encountered: