1.2.1381. Used Trait¶
Mark a trait as being used by a class or another trait.
<?php
// One used trait
trait usedTrait {}
// One unused trait
trait unusedTrait {}
class foo {
use usedTrait;
}
?>
See also Traits.
1.2.1381.1. Connex PHP features¶
1.2.1381.1.1. Specs¶
Short name |
Traits/UsedTrait |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |