5

Array type hint

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

pcabreus · 5 months ago