PHP - Interfaces and Traits
Identify the error in the following PHP code using traits:
trait Logger {
public function log() {
echo 'Logging';
}
}
class User {
use Logger
public function create() {
echo 'User created';
}
}