Skip to content

Commit

Permalink
Merge branch 'method-to-retrieve-hash' into return-null-when-request-…
Browse files Browse the repository at this point in the history
…specific-parameter
  • Loading branch information
ShuCh3n committed Dec 16, 2024
2 parents f5a3131 + 92ca18a commit 200a1f2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Handlers/HMAC/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Validator extends Hmac
/**
* @var string
*/
protected string $hash;
protected string $hash = '';

/**
* @param Config $config
Expand Down Expand Up @@ -102,4 +102,12 @@ public function validateOrFail(string $header, string $uri, string $method, $dat

throw new BuckarooException($this->config->getLogger(), "HMAC validation failed.");
}

/**
* @return string
*/
public function getHash(): string
{
return $this->hash;
}
}

0 comments on commit 200a1f2

Please sign in to comment.