Created
February 24, 2012 04:59
-
-
Save stephenreay/1897888 to your computer and use it in GitHub Desktop.
Autocode bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Based on the method below, Autocode produces the wrong docblock. The expected docblock is shown further below */ | |
class Bad { | |
/** | |
* Summary | |
* @param Object array Description | |
* @param Object array Description | |
* @return Object Description | |
*/ | |
public function __construct(array &$project, array &$lineItems) { | |
$this->project = $project; | |
$this->loadLineItems(); | |
} | |
} | |
class Good { | |
/** | |
* Summary | |
* @param array $project Description | |
* @param array $lineItems Description | |
* @return Object Description | |
*/ | |
public function __construct(array &$project, array &$lineItems) { | |
$this->project = $project; | |
$this->loadLineItems(); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment