diff --git a/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php b/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php index 8104caf5320e..b97f967cce70 100644 --- a/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php +++ b/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php @@ -2,7 +2,7 @@ namespace Illuminate\Validation; -use Illuminate\Contracts\Validation\ValidationException; +use Illuminate\Contracts\Validation\ValidationException as ValidationExceptionContract; use Illuminate\Contracts\Validation\UnauthorizedException; /** @@ -46,7 +46,7 @@ protected function getValidatorInstance() */ protected function failedValidation(Validator $validator) { - throw new ValidationException($validator); + throw new ValidationExceptionContract($validator); } /**