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

[9.x] ValidationException summarize only when use strings #43177

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

angeljqv
Copy link
Contributor

@angeljqv angeljqv commented Jul 13, 2022

Fixes #43130

On [1e02bc] src/Illuminate/Validation/ValidationException.php, laravel adds the first error with a summarize count, but when you try to ->add custom data to error message bag, it throws ErrorException to string conversion

I'm trying to upgrade from laravel 8.x, and this is the only exception that i have, on previous versions we did can add custom data to errors on message bag, it is not the best but helps with third party plugins

This PR takes back old functionality without changing the new one

@GrahamCampbell GrahamCampbell changed the title ValidationException summarize only when use strings [9.x] ValidationException summarize only when use strings Jul 14, 2022
@taylorotwell taylorotwell merged commit 64e43d7 into laravel:9.x Jul 14, 2022
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