Skip to content

docs: fix UPLOAD_ERR_XXX typo in UploadedFile docblocks - #10511

Open
mdalikadar wants to merge 1 commit into
codeigniter4:developfrom
mdalikadar:fix/uploadedfile-docblock-typo
Open

docs: fix UPLOAD_ERR_XXX typo in UploadedFile docblocks#10511
mdalikadar wants to merge 1 commit into
codeigniter4:developfrom
mdalikadar:fix/uploadedfile-docblock-typo

Conversation

@mdalikadar

Copy link
Copy Markdown

Small docblock fix, nothing functional.

The $error param/property docs in UploadedFile and
UploadedFileInterface call it "UPLOADERRXXX" (no underscores), but the
real PHP constant is UPLOAD_ERR_XXX. You can tell it's just a typo
because a few lines down in the same files, the getError() docblock
already spells it correctly.

What I changed:

  • Fixed the typo in 3 spots across UploadedFile.php and
    UploadedFileInterface.php

No code behavior changes, just the doc comments.

Let me check on the gh auth login status while you've got this.

@mergeable

mergeable Bot commented Aug 31, 2026

Copy link
Copy Markdown

Hi there, mdalikadar! 👋

Thank you for sending this PR!

We expect the following in all Pull Requests (PRs).

Important

We expect all code changes or bug-fixes to be accompanied by one or more tests added to our test suite to prove the code works.

If pull requests do not comply with the above, they will likely be closed. Since we are a team of volunteers, we don't have any more time to work
on the framework than you do. Please make it as painless for your contributions to be included as possible.

See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md

Sincerely, the mergeable bot 🤖

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).
@mdalikadar
mdalikadar force-pushed the fix/uploadedfile-docblock-typo branch from 1fba5e4 to 6f98759 Compare August 31, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant