#4322·hhvm

Trait requirements using a comma

Author: milesjCreated Nov 23, 2014Updated Jul 3, 2025
Labelsfeature requesthack

Currently this is not supported and you have to declare a requirement per line.

hack
trait ObserverAnnotation {
    require implements Annotator;
    require implements Subject;
}

Would be nice if you could comma separate them the same way you do extends and implements for a class.

hack
trait ObserverAnnotation {
    require implements Annotator, Subject;
}