%s cannot use %s - it is not a trait¶
Description¶
In a class definition, the use expression must only use traits. All other structures, such as class, interface, enum or else, are not allowed.
Example¶
<?php
class X {}
class Y {
use x;
}
?>
Literal Examples¶
y cannot use x - it is not a trait
Solutions¶
Remove the use expression that uses the class.
Fix the name of the class, and use an existing trait.