# [RFC] Ensure correct magic methods' signatures when typed

- Thread: https://externals.io/message/109416
- Original archive: https://news-web.php.net/php.internals/109416
- Started by Gabriel Caruso on 2020-03-29T17:54:14+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #109416 — Gabriel Caruso — 2020-03-29T17:54:14+00:00

URL: https://externals.io/message/109416#109416

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.
