Skip to content

Commit d2895c7

Browse files
authored
Include class-string generics for Validator::$exception (#53210)
1 parent 4b0e358 commit d2895c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Validation/Validator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class Validator implements ValidatorContract
313313
/**
314314
* The exception to throw upon failure.
315315
*
316-
* @var string
316+
* @var class-string<\Illuminate\Validation\ValidationException>
317317
*/
318318
protected $exception = ValidationException::class;
319319

@@ -1513,7 +1513,7 @@ public function setPresenceVerifier(PresenceVerifierInterface $presenceVerifier)
15131513
/**
15141514
* Get the exception to throw upon failed validation.
15151515
*
1516-
* @return string
1516+
* @return class-string<\Illuminate\Validation\ValidationException>
15171517
*/
15181518
public function getException()
15191519
{
@@ -1523,7 +1523,7 @@ public function getException()
15231523
/**
15241524
* Set the exception to throw upon failed validation.
15251525
*
1526-
* @param string $exception
1526+
* @param class-string<\Illuminate\Validation\ValidationException> $exception
15271527
* @return $this
15281528
*
15291529
* @throws \InvalidArgumentException

0 commit comments

Comments
 (0)