Array type hint

Posted by alcalyn 3 years 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 · 3 years ago

pcabreus · 3 years ago