Skip to content

refactor: move ValidatedInput to the Input namespace#10310

Open
michalsn wants to merge 1 commit into
codeigniter4:4.8from
michalsn:refactor/valideatedInput
Open

refactor: move ValidatedInput to the Input namespace#10310
michalsn wants to merge 1 commit into
codeigniter4:4.8from
michalsn:refactor/valideatedInput

Conversation

@michalsn

Copy link
Copy Markdown
Member

Description
This PR moves ValidatedInput from CodeIgniter\Validation to CodeIgniter\Input. The class is a typed input data object, not a validator or a validation rule, so it belongs with the other input types. Validation and FormRequest still expose validated data through getValidatedInput(). The difference is that the returned object now sits next to InputData and InputDataFactory instead of among the validation classes.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added refactor Pull requests that refactor code 4.8 PRs that target the `4.8` branch. labels Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.8 PRs that target the `4.8` branch. refactor Pull requests that refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants