Skip to content

Commit fbd216d

Browse files
committed
Properties $originalName and $mimeType are never null in UploadedFile
1 parent eded33d commit fbd216d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

File/UploadedFile.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class UploadedFile extends File
2626
{
27-
private $test = false;
27+
private $test;
2828
private $originalName;
2929
private $mimeType;
3030
private $size;
@@ -72,7 +72,7 @@ public function __construct($path, $originalName, $mimeType = null, $size = null
7272
* It is extracted from the request from which the file has been uploaded.
7373
* Then it should not be considered as a safe value.
7474
*
75-
* @return string|null The original name
75+
* @return string The original name
7676
*/
7777
public function getClientOriginalName()
7878
{
@@ -101,7 +101,7 @@ public function getClientOriginalExtension()
101101
* For a trusted mime type, use getMimeType() instead (which guesses the mime
102102
* type based on the file content).
103103
*
104-
* @return string|null The mime type
104+
* @return string The mime type
105105
*
106106
* @see getMimeType()
107107
*/

0 commit comments

Comments
 (0)