[php-src] Issue #9486: Function array return type

From: 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. ![php-rfc](https://user-images.githubusercontent.com/38913462/188473080-f60e1dce-1e40-47e9-a06f-8168e9eb26b3.png)

« previous php.bugs (#242364) next »