hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Trait requirements using a comma

Open milesj opened this issue 11 years ago • 2 comments

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

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.

trait ObserverAnnotation {
    require implements Annotator, Subject;
}

milesj avatar Nov 23 '14 06:11 milesj

I never know I wanted this, until now. This is still a parse error in hhvm 4.56.

lexidor avatar May 19 '20 19:05 lexidor

This is still a parse error in 2025.

lexidor avatar Jul 03 '25 20:07 lexidor