Skip to content

Commit

Permalink
Removed $applyDefault parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
little-apps committed Jun 1, 2024
1 parent 2cc205e commit 28104b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Mutate/MutateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ public function create(?callable $callback = null)
*
* @param JsonWebToken $jwt JWT instance to validate (generated by parseToken() method)
* @param callable(Validator): void $callback Callable that receives Validator to set rules for JWT.
* @param bool $applyDefault If true, the default validatable is used first. (default: true)
* @return MutatedValidatedJsonWebToken
*/
public function validate(JsonWebToken $jwt, ?callable $callback = null, $applyDefault = true)
public function validate(JsonWebToken $jwt, ?callable $callback = null)
{
$result = parent::validate($jwt, $callback, $applyDefault);
$result = parent::validate($jwt, $callback);

return new MutatedValidatedJsonWebToken($result, fn () => $this->unserialize($result->getJWT()));
}
Expand Down

0 comments on commit 28104b8

Please sign in to comment.