Bug 155382

Summary: In PHP5 code generation: Illegal tag without any parameter is generated
Product: [Applications] umbrello Reporter: Paul van Haren <paul.vanharen>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: cweiske, thomas
Priority: NOR    
Version: 1.5.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.1
Sentry Crash Report:
Attachments: add void if no return type is set

Description Paul van Haren 2008-01-10 09:21:09 UTC
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
Comment 1 Alexander Opitz 2009-02-01 17:28:28 UTC
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.
Comment 2 Oliver Kellogg 2012-02-12 00:54:39 UTC
*** Bug 116110 has been marked as a duplicate of this bug. ***
Comment 3 Oliver Kellogg 2012-02-12 00:59:49 UTC
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
Comment 4 Ralf Habacker 2013-11-06 17:23:40 UTC
set version-fixed-in from 4.8.1 changelog