I'd like to create an interface, IFoo, that's basically a combination of a custom interface, IBar, and a few native interfaces, ArrayAccess, IteratorAggregate, and Serializable. PHP doesn't seem to allow interfaces that implement other interfaces, as I get the following error when I try:
PHP Parse error: syntax error, unexpected T_IMPLEMENTS, expecting '{' in X on line Y
I know that interfaces can extend other ones, but PHP doesn't allow multiple inheritance and I can't modify native interfaces, so now I'm stuck.
Do I have to duplicate the other interfaces within IFoo, or is there a better way that allows me to reuse the native ones?