@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * It is extracted from the request from which the file has been uploaded. |
37 | 37 | * Then it should not be considered as a safe value. |
38 | 38 | * |
39 | - * @return string|null The original name |
|
39 | + * @return string The original name |
|
40 | 40 | */ |
41 | 41 | public function nameUnsafe() |
42 | 42 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * The client mime type is extracted from the request from which the file |
63 | 63 | * was uploaded, so it should not be considered as a safe value. |
64 | 64 | * |
65 | - * @return string|null The mime type |
|
65 | + * @return string The mime type |
|
66 | 66 | */ |
67 | 67 | public function mimeTypeUnsafe() |
68 | 68 | { |
@@ -72,7 +72,7 @@ |
||
72 | 72 | } else { |
73 | 73 | throw new \RuntimeException(sprintf('The file "%s" does not exist', $path)); |
74 | 74 | } |
75 | - } else { |
|
75 | + } else { |
|
76 | 76 | $route = new BaseRoute(); |
77 | 77 | $route->default($packageRoot, $request); |
78 | 78 | if (null !== $route->getResponse()) { |