From 755d305e0baa59d2a4450177f33875ec04caf974 Mon Sep 17 00:00:00 2001 From: Timur Date: Tue, 1 Oct 2019 19:11:20 +0300 Subject: [PATCH] phpdoc return type for ServerRequestInterface::getUploadedFiles() For better IDE autocompletion I suggest replace return type for `ServerRequestInterface::getUploadedFiles()` from simple `array` to `UploadedFileInterface[]` --- src/ServerRequestInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServerRequestInterface.php b/src/ServerRequestInterface.php index 0251234..af8464f 100644 --- a/src/ServerRequestInterface.php +++ b/src/ServerRequestInterface.php @@ -131,7 +131,7 @@ public function withQueryParams(array $query); * These values MAY be prepared from $_FILES or the message body during * instantiation, or MAY be injected via withUploadedFiles(). * - * @return array An array tree of UploadedFileInterface instances; an empty + * @return UploadedFileInterface[] An array tree of UploadedFileInterface instances; an empty * array MUST be returned if no data is present. */ public function getUploadedFiles();