Properties $originalName and $mimeType are never null in UploadedFile
This commit is contained in:
parent
cb7e78c809
commit
eb8d626c27
@ -24,7 +24,7 @@ use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser;
|
|||||||
*/
|
*/
|
||||||
class UploadedFile extends File
|
class UploadedFile extends File
|
||||||
{
|
{
|
||||||
private $test = false;
|
private $test;
|
||||||
private $originalName;
|
private $originalName;
|
||||||
private $mimeType;
|
private $mimeType;
|
||||||
private $size;
|
private $size;
|
||||||
@ -72,7 +72,7 @@ class UploadedFile extends File
|
|||||||
* It is extracted from the request from which the file has been uploaded.
|
* It is extracted from the request from which the file has been uploaded.
|
||||||
* Then it should not be considered as a safe value.
|
* Then it should not be considered as a safe value.
|
||||||
*
|
*
|
||||||
* @return string|null The original name
|
* @return string The original name
|
||||||
*/
|
*/
|
||||||
public function getClientOriginalName()
|
public function getClientOriginalName()
|
||||||
{
|
{
|
||||||
@ -101,7 +101,7 @@ class UploadedFile extends File
|
|||||||
* For a trusted mime type, use getMimeType() instead (which guesses the mime
|
* For a trusted mime type, use getMimeType() instead (which guesses the mime
|
||||||
* type based on the file content).
|
* type based on the file content).
|
||||||
*
|
*
|
||||||
* @return string|null The mime type
|
* @return string The mime type
|
||||||
*
|
*
|
||||||
* @see getMimeType()
|
* @see getMimeType()
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user