From 6f98759868089e669741df59111ea9ecb660d5e4 Mon Sep 17 00:00:00 2001 From: MD Ali Kadar Date: Mon, 31 Aug 2026 09:49:57 +0600 Subject: [PATCH] docs: fix UPLOAD_ERR_XXX typo in UploadedFile docblocks The $error param/property docblocks in UploadedFile and UploadedFileInterface referred to PHP's error constants as 'UPLOADERRXXX', missing the underscores. The correct constant name is UPLOAD_ERR_XXX, as already used correctly elsewhere in the same files (e.g. the getError() return docblock). --- system/HTTP/Files/UploadedFile.php | 4 ++-- system/HTTP/Files/UploadedFileInterface.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/HTTP/Files/UploadedFile.php b/system/HTTP/Files/UploadedFile.php index 97c228df8f7c..bf594acddc38 100644 --- a/system/HTTP/Files/UploadedFile.php +++ b/system/HTTP/Files/UploadedFile.php @@ -57,7 +57,7 @@ class UploadedFile extends File implements UploadedFileInterface /** * The error constant of the upload - * (one of PHP's UPLOADERRXXX constants) + * (one of PHP's UPLOAD_ERR_XXX constants) * * @var int|null */ @@ -77,7 +77,7 @@ class UploadedFile extends File implements UploadedFileInterface * @param string $originalName The client-provided filename. * @param string|null $mimeType The type of file as provided by PHP * @param int|null $size The size of the file, in bytes - * @param int|null $error The error constant of the upload (one of PHP's UPLOADERRXXX constants) + * @param int|null $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants) * @param string|null $clientPath The webkit relative path of the uploaded file. */ public function __construct(string $path, string $originalName, ?string $mimeType = null, ?int $size = null, ?int $error = null, ?string $clientPath = null) diff --git a/system/HTTP/Files/UploadedFileInterface.php b/system/HTTP/Files/UploadedFileInterface.php index 6e849d04a76b..edc88e500573 100644 --- a/system/HTTP/Files/UploadedFileInterface.php +++ b/system/HTTP/Files/UploadedFileInterface.php @@ -32,7 +32,7 @@ interface UploadedFileInterface * @param string $originalName The client-provided filename. * @param string|null $mimeType The type of file as provided by PHP * @param int|null $size The size of the file, in bytes - * @param int|null $error The error constant of the upload (one of PHP's UPLOADERRXXX constants) + * @param int|null $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants) * @param string|null $clientPath The webkit relative path of the uploaded file. */ public function __construct(string $path, string $originalName, ?string $mimeType = null, ?int $size = null, ?int $error = null, ?string $clientPath = null);