Re: [RFC][DISCUSSION] Object type hint, now with added variance
| From: | Levi Morrison | Date: | Tue, 14 Feb 2017 21:20:52 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Object type hint, now with added variance | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98295@lists.php.net to get a copy of this message | ||
(Oops, I forgot to inherit the interface:
interface Factory {
function make(...$args): object;
}
class FooFactory implements Factory {
function make(...$args): Foo;
}
sorry for the noise)