1 | <?php /** MicroUploader */ |
||
19 | class Uploader |
||
20 | { |
||
21 | /** @var array $files upload files */ |
||
22 | public $files = []; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * Constructor uploads |
||
27 | * |
||
28 | * @access public |
||
29 | * |
||
30 | * @param array $rawData Raw data for setup |
||
31 | * |
||
32 | * @result void |
||
33 | */ |
||
34 | public function __construct(array $rawData = null) |
||
38 | |||
39 | /** |
||
40 | * Setup uploader from config array |
||
41 | * |
||
42 | * @access public |
||
43 | * |
||
44 | * @param array $rawData Raw data |
||
45 | * |
||
46 | * @return void |
||
47 | */ |
||
48 | public function setup(array $rawData = []) |
||
71 | } |
||
72 |
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.