File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Illuminate/Validation Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1383,9 +1383,9 @@ public function setPresenceVerifier(PresenceVerifierInterface $presenceVerifier)
1383
1383
* Set the exception to throw upon failed validation.
1384
1384
*
1385
1385
* @param string $exception
1386
- * @return void
1386
+ * @return $this
1387
1387
*
1388
- * @throws InvalidArgumentException
1388
+ * @throws \ InvalidArgumentException
1389
1389
*/
1390
1390
public function setException ($ exception )
1391
1391
{
@@ -1394,7 +1394,10 @@ public function setException($exception)
1394
1394
sprintf ('Exception [%s] is invalid. It must extend [%s]. ' , $ exception , ValidationException::class)
1395
1395
);
1396
1396
}
1397
+
1397
1398
$ this ->exception = $ exception ;
1399
+
1400
+ return $ this ;
1398
1401
}
1399
1402
1400
1403
/**
You can’t perform that action at this time.
0 commit comments