Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
angeljqv:patch-1
Jul 14, 2022
Merged

[9.x] ValidationException summarize only when use strings#43177
taylorotwell merged 1 commit into
laravel:9.xfrom
angeljqv:patch-1

Conversation

@angeljqv

@angeljqv angeljqv commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

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