Skip to content

feat: support {field}, {param}, {value} placeholders in rule $error messages#10024

Open
michalsn wants to merge 4 commits intocodeigniter4:4.8from
michalsn:feat/validation-errors
Open

feat: support {field}, {param}, {value} placeholders in rule $error messages#10024
michalsn wants to merge 4 commits intocodeigniter4:4.8from
michalsn:feat/validation-errors

Conversation

@michalsn
Copy link
Member

@michalsn michalsn commented Mar 6, 2026

Description
This PR allows placeholders to be used in error messages set directly by closure, callable, and rule-set rule methods via the $error reference parameter.

Fixes #9218

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

Copy link
Contributor

@neznaika0 neznaika0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good

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.

2 participants