Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.10.0
-
Fix Version/s: None
-
Component/s: Zend_Reflection
Description
When I use Zend_Reflection_Method::getBody() on a method like that :
method() {
if(1) {
;
}
}
it returns only :
if(1) {
;
I don't understand why getBody() returns rtrim(ltrim(implode("\n", $lines), '{'), '}') instead of only implode("\n", $lines)
Attachments
Issue Links
| This issue is duplicated by: | ||||
| ZF-11472 | "zf create action" can cause malformed PHP when other action methods already exist |
|
|
|
| ZF-12040 | Syntax error in Controller file after creating an Action |
|
|
|
| This issue is related to: | ||||
| ZF-10870 | getBody in Zend_Reflection_Method returns wrong on multi-line function declarations |
|
|
|
| This issue is related to: | ||||
| ZF-9501 | zf tool create action breaks the php code in controller |
|
|
|
Added diff files (library, tests).