Skip to content

Commit 9b71bf7

Browse files
authored
docs: fix UPLOAD_ERR_XXX typo in UploadedFile docblocks (#10511)
1 parent a826e69 commit 9b71bf7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

system/HTTP/Files/UploadedFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class UploadedFile extends File implements UploadedFileInterface
5757

5858
/**
5959
* The error constant of the upload
60-
* (one of PHP's UPLOADERRXXX constants)
60+
* (one of PHP's UPLOAD_ERR_XXX constants)
6161
*
6262
* @var int|null
6363
*/
@@ -77,7 +77,7 @@ class UploadedFile extends File implements UploadedFileInterface
7777
* @param string $originalName The client-provided filename.
7878
* @param string|null $mimeType The type of file as provided by PHP
7979
* @param int|null $size The size of the file, in bytes
80-
* @param int|null $error The error constant of the upload (one of PHP's UPLOADERRXXX constants)
80+
* @param int|null $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants)
8181
* @param string|null $clientPath The webkit relative path of the uploaded file.
8282
*/
8383
public function __construct(string $path, string $originalName, ?string $mimeType = null, ?int $size = null, ?int $error = null, ?string $clientPath = null)

system/HTTP/Files/UploadedFileInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface UploadedFileInterface
3232
* @param string $originalName The client-provided filename.
3333
* @param string|null $mimeType The type of file as provided by PHP
3434
* @param int|null $size The size of the file, in bytes
35-
* @param int|null $error The error constant of the upload (one of PHP's UPLOADERRXXX constants)
35+
* @param int|null $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants)
3636
* @param string|null $clientPath The webkit relative path of the uploaded file.
3737
*/
3838
public function __construct(string $path, string $originalName, ?string $mimeType = null, ?int $size = null, ?int $error = null, ?string $clientPath = null);

0 commit comments

Comments
 (0)