Re: [PHP-DEV][RFC][DISCUSSION] Allow abstract function override

2017-02-28 Thread Wes
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; } `

Re: [PHP-DEV][RFC][DISCUSSION] Allow abstract function override

2017-02-28 Thread Marco Pivetta
An abstract function is a partial interface: I see no value in adding exceptions to interface implementations, especially if you add that: * only works with abstract classes, not interfaces * has a too narrow use-case scenario (need more necessity and scenarios with common patterns) * just writ

[PHP-DEV][RFC][DISCUSSION] Allow abstract function override

2017-02-28 Thread Wes
Hello internals, I've just created a new RFC, you can read it at: https://wiki.php.net/rfc/allow-abstract-function-override Note: I have absolutely no idea how difficult implementing this would be, as I have no C/internals knowledge. Thus, patches are very welcome - thank you in advance if you in