Skip to content

Commit 07330ef

Browse files
committed
formatting
1 parent 73c7c11 commit 07330ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Illuminate/Validation/Validator.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,9 +1383,9 @@ public function setPresenceVerifier(PresenceVerifierInterface $presenceVerifier)
13831383
* Set the exception to throw upon failed validation.
13841384
*
13851385
* @param string $exception
1386-
* @return void
1386+
* @return $this
13871387
*
1388-
* @throws InvalidArgumentException
1388+
* @throws \InvalidArgumentException
13891389
*/
13901390
public function setException($exception)
13911391
{
@@ -1394,7 +1394,10 @@ public function setException($exception)
13941394
sprintf('Exception [%s] is invalid. It must extend [%s].', $exception, ValidationException::class)
13951395
);
13961396
}
1397+
13971398
$this->exception = $exception;
1399+
1400+
return $this;
13981401
}
13991402

14001403
/**

0 commit comments

Comments
 (0)