From e2cd5762646409ef921063f2cccfcf96e85aff50 Mon Sep 17 00:00:00 2001 From: Jared Dunham Date: Wed, 28 Feb 2018 11:18:28 -0600 Subject: [PATCH] Added `@throws ValidationException` --- src/Routing/ProvidesConvenienceMethods.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Routing/ProvidesConvenienceMethods.php b/src/Routing/ProvidesConvenienceMethods.php index c13b3c06..0c69fc91 100644 --- a/src/Routing/ProvidesConvenienceMethods.php +++ b/src/Routing/ProvidesConvenienceMethods.php @@ -56,6 +56,8 @@ public static function formatErrorsUsing(BaseClosure $callback) * @param array $messages * @param array $customAttributes * @return array + * + * @throws ValidationException */ public function validate(Request $request, array $rules, array $messages = [], array $customAttributes = []) { @@ -88,6 +90,8 @@ protected function extractInputFromRules(Request $request, array $rules) * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Validation\Validator $validator * @return void + * + * @throws ValidationException */ protected function throwValidationException(Request $request, $validator) {