Cannot use traits inside of interfaces. %s is used in %s¶
Description¶
The command use cannot be used in an interface to include a trait. The trait must be included at the class level, or in another trait.
Example¶
<?php
interface I {
use T;
}
?>
Literal Examples¶
Cannot use traits inside of interfaces. T is used in I
Solutions¶
Use the trait in the target classes.