Skip to content

Commit a2d51fa

Browse files
committed
FileUpload::getName() is silently deprecated
1 parent 3b70e0c commit a2d51fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Http/FileUpload.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ public function __construct(?array $value)
6262

6363

6464
/**
65-
* Returns the original file name as submitted by the browser. Do not trust the value returned by this method.
66-
* A client could send a malicious filename with the intention to corrupt or hack your application.
67-
* Alias for getUntrustedName()
65+
* @deprecated use getUntrustedName()
6866
*/
6967
public function getName(): string
7068
{

0 commit comments

Comments
 (0)