| Summary: | In PHP5 code generation: Illegal tag without any parameter is generated | ||
|---|---|---|---|
| Product: | [Applications] umbrello | Reporter: | Paul van Haren <paul.vanharen> |
| Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cweiske, thomas |
| Priority: | NOR | ||
| Version First Reported In: | 1.5.5 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.8.1 | |
| Sentry Crash Report: | |||
| Attachments: | add void if no return type is set | ||
Created attachment 30830 [details]
add void if no return type is set
Adds "void" behind the return comment element if no return type is given.
*** Bug 116110 has been marked as a duplicate of this bug. *** SVN commit 1279522 by okellogg: Apply attachment 30830 [details] : Quoting comment #1, > Adds "void" behind the return comment element if no return type is > given. M +2 -1 ChangeLog M +7 -1 umbrello/codegenerators/php/php5writer.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1279522 set version-fixed-in from 4.8.1 changelog |
Version: 1.5.5 (using KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-8 (4.0)) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.18-5-686 In Umbrello a class is defined in which one of the methods has no return value. The PHP5 code generated from this method reads: /** * Does something * * @return * @access public */ public function myFunc( ) { } // end of member function myFunc Running this code through PhpDocumentor, version 1.4.1, results in the error message: ERROR in MyClass.php on line 68: "@return" tag was used without any parameters, illegal Expected code: /** * Does something * * @return void * @access public */ public function myFunc( ) { } // end of member function myFunc