Skip to content

Commit

Permalink
Properties $originalName and $mimeType are never null in UploadedFile
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed May 16, 2020
1 parent eded33d commit fbd216d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions File/UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
class UploadedFile extends File
{
private $test = false;
private $test;
private $originalName;
private $mimeType;
private $size;
Expand Down Expand Up @@ -72,7 +72,7 @@ public function __construct($path, $originalName, $mimeType = null, $size = null
* It is extracted from the request from which the file has been uploaded.
* Then it should not be considered as a safe value.
*
* @return string|null The original name
* @return string The original name
*/
public function getClientOriginalName()
{
Expand Down Expand Up @@ -101,7 +101,7 @@ public function getClientOriginalExtension()
* For a trusted mime type, use getMimeType() instead (which guesses the mime
* type based on the file content).
*
* @return string|null The mime type
* @return string The mime type
*
* @see getMimeType()
*/
Expand Down

0 comments on commit fbd216d

Please sign in to comment.