[RFC] Ensure correct magic methods' signatures when typed

php.internals

Gabriel Caruso

6 years ago
Hello internals. I'd like to discuss with you about https://github.com/php/php-src/pull/4177. I'll write a formal RFC for this during the week. Open question: ```php public function __constructor() {} ``` vs. ```php public function __constructor(): void {} ``` The same goes for `__destruct`, `__clone` and others that do not have return type nowadays.