1.2.1372. 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.1372.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 |
Features |
trait |
Available in |