1 | <?php |
||
10 | class Upload |
||
11 | { |
||
12 | protected $config = []; |
||
13 | |||
14 | 24 | public function __construct() |
|
18 | |||
19 | /** |
||
20 | * Takes an UploadedFile, stores it to the disk and records it in the database. |
||
21 | * @param UploadedFile $file The file to handle |
||
22 | * @return File The Eloquent Model for the file |
||
23 | */ |
||
24 | 15 | public function create(UploadedFile $file) |
|
66 | |||
67 | /** |
||
68 | * Returns the storage disk instance to use |
||
69 | * @return Storage The Storage disk |
||
70 | */ |
||
71 | 12 | protected function getDiskInstance() |
|
75 | |||
76 | /** |
||
77 | * Produces a random alphanumberic string |
||
78 | * @param integer $len The length that you want |
||
79 | * @return string A random alphanumberic string |
||
80 | */ |
||
81 | 18 | protected function getRandomString($len = 16) |
|
90 | |||
91 | /** |
||
92 | * Returns two random directories |
||
93 | * @return string A path with two directories: 'a/b', '1/g', '9/4', etc... |
||
94 | */ |
||
95 | 15 | protected function getRandomDirectory() |
|
101 | |||
102 | /** |
||
103 | * Returns the hash value of a file |
||
104 | * @param UploadedFile $file The file |
||
105 | * @return string The hash |
||
106 | */ |
||
107 | 15 | protected function getFingerprint(UploadedFile $file) |
|
121 | } |
||
122 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..