1 | <?php |
||
6 | class UploadedFileFactory |
||
7 | { |
||
8 | /** |
||
9 | * @param array $files |
||
10 | * @return \Psr\Http\Message\UploadedFileInterface[]|array |
||
11 | */ |
||
12 | 12 | public function createFromFiles(array $files) |
|
26 | |||
27 | /** |
||
28 | * @param array|string $fileDatas |
||
29 | * @param array|int $sizeDatas |
||
30 | * @param array|int $errorDatas |
||
31 | * @param array|string $nameDatas |
||
32 | * @param array|string $typeDatas |
||
33 | * @return \Psr\Http\Message\UploadedFileInterface|\Psr\Http\Message\UploadedFileInterface[]|array |
||
34 | */ |
||
35 | 3 | protected function factoryFilesTree($fileDatas, $sizeDatas, $errorDatas, $nameDatas, $typeDatas) |
|
52 | } |
||
53 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.