| Summary: | use statement is added on wrong possition | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kalin <kalin.a> |
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | silviya, zhaozhongwei, zulus |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
fixed Current situation:
No use statement added at all.
Actual:
<?php
namespace NN;
class CCC {
}
class DDD extends CCC;
Reopen
Ilina Stefanova
No use statement is correct behavior (like in JDT). Both classes are in same namespace, use statement isn't necessary. Right! Both examples from Ilina and Kalin are not really correct. Previously it was adding a use statement which is not just at wrong position but not at all needed. Closing the bug |
<?php namespace NN; class CCC { } class DDD extends C| //<--invoke content assist at cursor position "|", then select "CCC" Actual: <?php use NN\CCC; namespace NN; class CCC { } class DDD extends CCC Expected: <?php namespace NN; class CCC { } use NN\CCC; class DDD extends CCC