Array type hint

Posted by alcalyn 10 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 · 10 months ago

pcabreus · 9 months ago