Array type hint
Posted by alcalyn 1 month 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.
public function doSomething(int $numbers, Foo $foos): void