[php-src] Issue #9486: Function array return type
| From: | PH7-Jack | Date: | Mon, 05 Sep 2022 14:47:16 +0000 |
| Subject: | [php-src] Issue #9486: Function array return type | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242364@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9486
Author: PH7-Jack
### Description
I believe to have better strict types, would be nice to have an array<element> type as
TypeScript does.
Now I can use comments to add this type of inference, but it doesn't break if my return type is
different than the type hint.
