phpactor_rename_class
Update all references to a PHP class project-wide, including use statements, type hints, and instantiations, without modifying the file or class declaration.
Instructions
Update all REFERENCES to a PHP class project-wide (use statements, type hints, docblocks, instantiations). Does NOT rename the file or modify the class declaration — use phpactor_move_class for a full rename including file move and namespace update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview changes without writing to files | |
| newFqcn | Yes | New fully qualified class name (e.g. App\Service\NewName) | |
| filePath | Yes | Path to the PHP file containing the class, relative to projectPath | |
| projectPath | Yes | Absolute path to the PHP project root |