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

Separate getting of formatted error messages #606

Open
arogachev opened this issue May 17, 2023 · 1 comment
Open

Separate getting of formatted error messages #606

arogachev opened this issue May 17, 2023 · 1 comment

Comments

@arogachev
Copy link
Contributor

A concept suggested by @xepozz.

$messages = new ErrorMessages();
// index by
$messages->indexByKey();
$messages->indexByParameter();
$messages->indexBy($closure);
// select
$messages->firstErrors();
$messages->firstError();
$messages->all();
// filter errors
$messages->filter($closure);
@roxblnfk
Copy link
Member

It looks interesting. Could you add more details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants