Closed MattApril closed 2 years ago
Tests are failing here.
Whoops, I forgot that I overwrote my own exception handler. Looks like Lumen's default handler excepts the response to be set on the ValidationException. Fixed.
Would this break existing applications?
Yes, it would cause a breaking change if anyone overwrote the protected extractInputFromRules or throwValidationException methods. I just updated it to use those methods if they are defined.
This broke my application. I'm not overwriting extractInputFromRules()
and throwValidationException()
, I'm calling them directly from my controller.
We're reverting this.
Hmm, that was an unfortunate oversight. Sorry about that.
I think this should be released as a breaking change in the next major version though. The current validation is not behaving as expected.
1247