[php-src] Issue #7900: `never` return type for arrow functions with throw expressions
| From: | iluuu1994 | Date: | Fri, 07 Jan 2022 13:39:51 +0000 |
| Subject: | [php-src] Issue #7900: `never` return type for arrow functions with throw expressions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238857@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7900
Comment Author: iluuu1994
Other expressions can also have side effects. E.g.
```php
fn (): void => match ($foo) {
'foo' => bar(),
}
```
I wouldn't complicate the matter even more and just do everything or nothing.