Donate Share

PhpDocumentor

Tracker: Bugs

5 Wrong parsing for passed-by-refference parameters - ID: 1949566
Last Update: Comment added ( jsweat )

PHP 5.2.5
phpDocumentor 1.4.2

Lets say I have such case:

<?php

class A
{
/**
* @var integer
*/
protected $a;

/**
* @var integer
*/
protected $b;

function __construct() {
$this->a = 1;
$this->b = 2;
}

public function doSomething(&$a, &$b) {}

public function do() {
$this->doSomething($this->a, $this->b);
}
}

?>

In generated documentation doSomething method will be documented as

void doSomething(&$a, &$b, integer $a, integer $b)

which could lead into a misunderstandig of how much parameters should be
passed in to the method and how they should be placed.


Nobody/Anonymous ( nobody ) - 2008-04-23 11:33

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-06-09 00:59
Sender: jsweat


I can verify this same bug is present when using the phpdoc 1.4.2 tarball
with php 5.2.5, which is what I used to build the SimpleTest api
documentation. Here is one example among many:

http://simpletest.org/api/SimpleTest/UnitTester/UnitTestCase.html#assertClone


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.