Skip to content

Commit 200a1f2

Browse files
committed
Merge branch 'method-to-retrieve-hash' into return-null-when-request-specific-parameter
2 parents f5a3131 + 92ca18a commit 200a1f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Handlers/HMAC/Validator.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Validator extends Hmac
4949
/**
5050
* @var string
5151
*/
52-
protected string $hash;
52+
protected string $hash = '';
5353

5454
/**
5555
* @param Config $config
@@ -102,4 +102,12 @@ public function validateOrFail(string $header, string $uri, string $method, $dat
102102

103103
throw new BuckarooException($this->config->getLogger(), "HMAC validation failed.");
104104
}
105+
106+
/**
107+
* @return string
108+
*/
109+
public function getHash(): string
110+
{
111+
return $this->hash;
112+
}
105113
}

0 commit comments

Comments
 (0)