phpactor_rename_member
Renames a PHP method, property, or constant and updates all references project-wide. Type inference ensures only the intended member is renamed, avoiding conflicts with same-named members on other classes.
Instructions
Rename a PHP method, property, or constant and update all references project-wide. Uses type inference to only rename the correct member (not same-named members on other classes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview changes without writing to files | |
| newName | Yes | New member name | |
| filePath | Yes | Path to the PHP file containing the class, relative to projectPath | |
| memberName | Yes | Current member name | |
| memberType | Yes | Type of the member | |
| projectPath | Yes | Absolute path to the PHP project root |