Re: [RFC][DISCUSSION] Allow abstract function override
| From: | Wes | Date: | Wed, 01 Mar 2017 07:26:24 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Allow abstract function override | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98367@lists.php.net to get a copy of this message | ||
Not sure i get what you mean. With "abstract functions" I include also
those in interfaces.
I haven't tried 7.2 yet, but i think what I'm proposing is already
supported (+ kelunik's RFC):
```
interface A{
function x(stdClass $foo);
}
interface B extends A{
function x($foo): stdClass;
}
```
I want this supported by abstract functions in abstract classes too.