Array type hint

Posted by alcalyn 7 months ago

Type hints for typed arrays. One of the reason I'm still using PHPDoc is to specify a type on arrays. So having typing on arrays would lead to a more strict language, and more documented without the need of PHPDoc. ```php class Foo { public function doSomething(int[] $numbers, Foo[] $foos): void { } } ```
alcalyn · 7 months ago

pcabreus · 7 months ago