Bug 155382 - In PHP5 code generation: Illegal tag without any parameter is generated
Summary: In PHP5 code generation: Illegal tag without any parameter is generated
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.5.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
: 116110 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-10 09:21 UTC by Paul van Haren
Modified: 2013-11-06 17:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.1


Attachments
add void if no return type is set (1.05 KB, patch)
2009-02-01 17:28 UTC, Alexander Opitz
Details

Note You need to log in before you can comment on or make changes to this bug.
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