- Add useImportAliases property to track import aliases by type domain - Implement registerUseImportAlias method with duplicate detection logic - Update use declaration processing to utilize import alias registration - Make class and function aliases case-insensitive while constants remain case-sensitive - Add comprehensive test coverage for import alias domain isolation - Include negative test cases for duplicate alias detection across domains - Move AST name resolution earlier in preprocessing steps - Add proper error handling for PHP parser errors during traversalmaster
parent
c8148018f8
commit
9b02dcd693
6 changed files with 122 additions and 22 deletions
@ -0,0 +1,17 @@ |
||||
<?php |
||||
|
||||
namespace ImportAliasDomains\First; |
||||
|
||||
use Vendor\Package\Route; |
||||
use function Vendor\Package\dispatch as Route; |
||||
use const Vendor\Package\ROUTE as Route; |
||||
use const Vendor\Package\route as route; |
||||
|
||||
class Consumer {} |
||||
|
||||
namespace ImportAliasDomains\Second; |
||||
|
||||
// Import aliases are local to a namespace block. |
||||
use Another\Package\Route; |
||||
|
||||
class Consumer {} |
||||
Loading…
Reference in new issue