Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotEmpty Validator Input Filter Affordances #396

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Oct 21, 2024

Description

InputFilter needs access to the internal message templates of the NotEmpty validator in order to present error messages when a required field is empty. This patch re-introduces getMessageTemplates only on the NotEmpty validator and marks the method as internal.

https://github.com/laminas/laminas-inputfilter/blob/15e25a10db958c4f12b3eda19ae47f38d193eb58/src/Input.php#L457-L481

@gsteel gsteel added this to the 3.0.0 milestone Oct 21, 2024
@gsteel gsteel force-pushed the not-empty-message-templates branch from cae7035 to e1ef49f Compare October 21, 2024 10:07
@gsteel
Copy link
Member Author

gsteel commented Oct 21, 2024

If I can get an approving review from @laminas/technical-steering-committee, then I think we can release v3.0 today 🤞

src/NotEmpty.php Show resolved Hide resolved
InputFilter needs access to the internal message templates of the `NotEmpty` validator in order to present error messages when a required field is empty. This patch re-introduces `getMessageTemplates` only on the NotEmpty validator and marks the method as internal.

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel force-pushed the not-empty-message-templates branch from e1ef49f to f0187df Compare October 21, 2024 10:14
@gsteel gsteel self-assigned this Oct 21, 2024
@gsteel gsteel merged commit 0303bc6 into laminas:3.0.x Oct 21, 2024
15 checks passed
@gsteel gsteel deleted the not-empty-message-templates branch October 21, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants