Skip to content

Commit

Permalink
Include class-string generics for Validator::$exception (#53210)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech authored Oct 18, 2024
1 parent 4b0e358 commit d2895c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class Validator implements ValidatorContract
/**
* The exception to throw upon failure.
*
* @var string
* @var class-string<\Illuminate\Validation\ValidationException>
*/
protected $exception = ValidationException::class;

Expand Down Expand Up @@ -1513,7 +1513,7 @@ public function setPresenceVerifier(PresenceVerifierInterface $presenceVerifier)
/**
* Get the exception to throw upon failed validation.
*
* @return string
* @return class-string<\Illuminate\Validation\ValidationException>
*/
public function getException()
{
Expand All @@ -1523,7 +1523,7 @@ public function getException()
/**
* Set the exception to throw upon failed validation.
*
* @param string $exception
* @param class-string<\Illuminate\Validation\ValidationException> $exception
* @return $this
*
* @throws \InvalidArgumentException
Expand Down

0 comments on commit d2895c7

Please sign in to comment.