1.2.1383. Used Use¶
This rule lists the use
statements. Those use
are made to import namespaces structures, including functions and constants, and not to include traits in classes.
<?php
namespace A {
class b {}
}
namespace B {
use A\B as B;
new B();
}
?>
See also Using namespaces: Aliasing/Importing.
1.2.1383.1. Connex PHP features¶
1.2.1383.1.1. Specs¶
Short name |
Namespaces/UsedUse |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
High |
Available in |