Req #57029 [Opn->Csd]: Add functionality to rename class attributes
| From: | sebastian@php.net | Date: | Thu, 27 Oct 2011 07:15:34 +0000 |
| Subject: | Req #57029 [Opn->Csd]: Add functionality to rename class attributes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164602@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=57029&edit=1
ID: 57029
Updated by: sebastian@php.net
Reported by: sebastian@php.net
Summary: Add functionality to rename class attributes
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: runkit
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: sebastian
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2006-05-21 06:52:41] sebastian@php.net
Description:
------------
I could not find functionality to rename class attributes (and obviously need it ;-).
Reproduce code:
---------------
<?php
class Foo {
private $bar;
protected $bar2;
public $bar3;
}
runkit_property_rename('Foo', 'bar', 'baz');
runkit_property_rename('Foo', 'bar2', 'baz2');
runkit_property_rename('Foo', 'bar3', 'baz3');
?>
Expected result:
----------------
<?php
class Foo {
private $baz;
protected $baz2;
public $baz3;
}
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=57029&edit=1