This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268823

Summary: Refactor of class name changes namespace if has same base name
Product: php Reporter: pmaselkowski
Component: RefactoringAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Example minimal project with above behavior

Description pmaselkowski 2016-11-04 10:34:21 UTC
NetBeans IDE Dev (Build 201610190002)

Assume I have classes:

Maslosoft\Acl\Rules
Maslosoft\Acl\Rules\MyRuleOne

1. Open "Rules" class definition file (Rules.php)
2. Click on class name and choose "Refactor -> Rename"
3. Enter new name, click preview

Current:
- Refactor tries to rename all classes with namespace anding with "Rules"

Expected:
- That refactor will affect only current class name
Comment 1 pmaselkowski 2016-11-04 10:35:06 UTC
Created attachment 162770 [details]
Example minimal project with above behavior