| Summary: | Not guessing the type of a parameter in a function with default value | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Sylvia Tancheva <silviya> |
| Component: | PDT | Assignee: | PHP UI <php.ui-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | kalin.a, zhaozhongwei |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
fixed Verified fixed. Now it says: * @param number $a * @return number Closing... Kalin Yanev kalin.a@zend.com |
Have the following example code: <?php class Calculator { function test($a=2) { return $a; } } Generate element comment for method test. Result: class Calculator { /** * @param unknown_type $a * @return unknown */ function test($a=2) { return $a; } } It should be possible to guess the type of the parameter when it has a default value, i.e instead of * @param unknown_type $a it should be * @param int $a