Answer the question
In order to leave comments, you need to log in
Realization of a normal contest, is it possible?
A little typing has recently appeared in the language. This context is now available:
....
public function GetFile (): File {}
public function GetFiles (): array {}
....
....
public function GetFiles (): File[] {}
....
Answer the question
In order to leave comments, you need to log in
https://wiki.php.net/rfc/arrayof
rejected such a proposal a long time ago, there are code examples for solving this problem with the current syntax.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question